когда я пытаюсь открыть страницу входа в webmin "https://192.168.1.13:10000"он показывает простой сценарий Perl, как показано ниже, в чем проблема? Я использую Ubuntu 18.04 и последнюю версию webmin.
#!/usr/bin/perl # # Authentic Theme (https://github.com/authentic-theme/authentic-theme) # Copyright Ilia Rostovtsev # Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) # use strict; use File::Basename; our (%in, %gconfig, %tconfig, %text, $config_directory, $current_theme, %theme_text); do(dirname(__FILE__) . "/authentic-lib.pl"); my %miniserv; get_miniserv_config(\%miniserv); my $charset = &get_charset(); # Check to add error handler error_40x_handler(); our %theme_config = (settings($config_directory . "/$current_theme/settings-admin", 'settings_'), settings($config_directory . "/$current_theme/settings-root", 'settings_')); # Show pre-login text banner if ($gconfig{'loginbanner'} && get_env('http_cookie') !~ /banner=1/ && !$in{'logout'} && !$in{'failed'} && !$in{'timed_out'}) { print "Auth-type: auth-required=1\r\n"; print "Set-Cookie: banner=1; path=/\r\n"; &PrintHeader($charset); print '', "\n"; print '', "\n"; embed_login_head(); print '' . "\n"; embed_overlay_prebody(); print '
' . "\n"; my $url = $in{'page'}; open(BANNER, $gconfig{'loginbanner'}); while () { s/LOGINURL/$url/g; print; } close(BANNER); &footer(); return; } my $sec = lc(get_env('https')) eq 'on' ? "; secure" : ""; my $sidname = $miniserv{'sidname'} || "sid"; print "Auth-type: auth-required=1\r\n"; print "Set-Cookie: banner=0; path=/$sec\r\n" if ($gconfig{'loginbanner'}); print "Set-Cookie: $sidname=x; path=/$sec\r\n" if ($in{'logout'}); print "Set-Cookie: redirect=1; path=/\r\n"; print "Set-Cookie: testing=1; path=/$sec\r\n"; &PrintHeader($charset); print '', "\n"; print '', "\n"; embed_login_head(); print '' . "\n"; embed_overlay_prebody(); print '' . "\n"; if (defined($in{'failed'})) { if ($in{'twofactor_msg'}) { print "",,"
\n"; print '' . "\n"; print ' '. $ theme_text {'login_warning'}. '
' . &theme_text('session_twofailed', &html_escape($in{'twofactor_msg'})) . "\n"; print '' . "\n"; } else { print '' . "\n"; print ' '. $ theme_text {'login_warning'}. '
' . "\n"; print '' . $theme_text{'theme_xhred_session_failed'} . "\n"; print '' . "\n"; } } elsif ($in{'logout'}) { print '' . "\n"; print ' '. $ theme_text {'login_success'}. '
' . "\n"; print '' . $theme_text{'session_logout'} . "\n"; print '' . "\n"; } elsif ($in{'timed_out'}) { print '' . "\n"; print ' '. $ theme_text {'login_warning'}. '
' . "\n"; print '' . &theme_text('session_timed_out', int($in{'timed_out'} / 60)) . "\n"; print '' . "\n"; } print "$text{'session_prefix'}\n"; print '' . "\n"; print ' ' . (&get_product_name() eq 'webmin' ? $theme_text{'theme_xhred_titles_wm'} : $theme_text{'theme_xhred_titles_um'} ) . '' . "\n"; # Process logo embed_logo(); # Login message my $host; if ($gconfig{'realname'}) { $host = &get_display_hostname(); } else { $host = get_env('server_name'); $host =~ s/:\d+//g; $host = &html_escape($host); } print '' . &theme_text('login_message') . ' '. $ host. '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; if ($miniserv{'twofactor_provider'}) { print '' . "\n"; print '' . "\n"; print '' . "\n"; print '' . "\n"; } if (!$gconfig{'noremember'}) { print ' ' . $theme_text{'login_save'} . ' ' . "\n"; } print ''; print ' ' . &theme_text('login_signin') . '' . "\n"; if ($text{'session_postfix'} =~ "href") { my $link = get_link($text{'session_postfix'}, 'ugly'); print '[0] . '", "' . $link->[1] . '", "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=700,height=500");return false;\' class="btn btn-warning"> ' . &theme_text('login_reset') . '' . "\n"; } print ''; print '' . "\n"; &footer();
Я нашел проблему. в файле /etc/webmin/miniserv.conf строка «addtype_cgi = internal / cgi» была «ddtype_cgi = internal / cgi», первый символ «a» был удален. моя глупая ошибка: |
@Admiral Noisy Bottom, большое спасибо за вашу помощь.