AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[webmin](server)

Martin Hope
unix_ike
Asked: 2022-01-06 03:24:07 +0800 CST

使用 FQDN 从 WAN 和 LAN 访问自托管 Web 服务器

  • 0

我在内部网络中有自托管的网络服务器,我可以使用 FQDN 从外部网络访问。我也想从具有相同 FQDN 的内部网络访问相同的服务器。

我已将路由器配置为使用我自己的位于内部网络中的 DNS 服务器。我可以通过我的内部网络中的 SSH 访问该机器和其他具有 FQDN 的机器,该网络在我的 DNS 服务器中有 A 记录。但是我无法通过浏览器使用 FQDN 访问该网络服务器(实际上是另一个“不面向互联网”的网络服务器)。我可以通过浏览器访问具有内部 IP 的用户。

我想这是与 DNS 相关的问题。我对基本的网络和服务器有所了解,但在 DNS 方面,我很不走运。

相关设备:

  • Ubiquiti Edgerouter代理路由器+防火墙。配置为使用内部 DNS 服务器。FW 端口将端口 80 和 443 转发到我的反向代理。

  • Nginx 反向代理服务器处理 LetsEncrypt 证书并将流量转发到我的网络服务器。<-- 似乎工作正常(可以使用 FQDN 从外部网络访问该 Web 服务器。SSL 也可以工作)。

  • 使用 Apache2 的网络服务器。浏览器可以使用本地 IP 访问,而不是 FQDN。

编辑:

  • 名称服务器- 使用 Webmin GUI 创建的记录

有任何想法吗?

domain-name-system networking reverse-proxy webmin
  • 1 个回答
  • 196 Views
Martin Hope
Reza Azimi
Asked: 2021-10-02 03:38:39 +0800 CST

使用 Apache 代理不通过端口转发

  • -1

我的服务器上有一些网站,其中很少有代理通行证,它们正在将一些端口传递给某个子域。但现在我正在尝试为 Webmin 添加另一个子域,但它不会转发到端口。

这是 site.conf:

    <VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName webmin.site.tld
    ProxyPreserveHost On

    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    ProxyPass / http://'publicip':10000/
    ProxyPassReverse / http://'publicip':10000/

RewriteEngine On
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]

RewriteCond %{SERVER_NAME} =webmin.site.tld [OR]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/webmin.site.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/webmin.site.tld/privkey.pem
</VirtualHost>

这是我看到的屏幕截图: 这是我看到的屏幕截图

然后,如果我使用 10000 端口,我会看到: 然后,如果我使用 10000 端口,我会看到

因此,据我所知,Apache 不会将请求转发到端口 10000,并且使用相同的配置,我运行了一些网站,并且 bind9 没问题,证书也没问题。

我错过了什么?

apache-2.2 reverse-proxy proxypass webmin
  • 1 个回答
  • 340 Views
Martin Hope
marcelo12
Asked: 2020-04-26 14:56:19 +0800 CST

Webmin 在尝试打开登录页面时显示普通 Perl 脚本

  • 0

当我尝试打开 webmin 登录页面“ https://192.168.1.13:10000 ”时,它显示如下纯 Perl 脚本,有什么问题?我正在运行 Ubuntu 18.04 和最新版本的 webmin。

#!/usr/bin/perl

#
# 正宗主题(https://github.com/authentic-theme/authentic-theme)
# 版权所有伊利亚·罗斯托夫采夫
# 在 MIT 下获得许可 (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
#
使用严格;

使用 File::Basename;

我们的 (%in, %gconfig, %tconfig, %text, $config_directory, $current_theme, %theme_text);

do(dirname(__FILE__) . "/authentic-lib.pl");

我的 %miniserv;
get_miniserv_config(\%miniserv);

我的 $charset = &get_charset();

# 检查添加错误处理程序
error_40x_handler();

我们的 %theme_config = (settings($config_directory . "/$current_theme/settings-admin", 'settings_'),
                     settings($config_directory . "/$current_theme/settings-root", 'settings_'));

# 显示登录前文本横幅
if ($gconfig{'loginbanner'} &&
    get_env('http_cookie') !~ /banner=1/ &&
    !$in{'注销'} &&
    !$in{'失败'} &&
    !$in{'timed_out'})
{

    print "Auth-type: auth-required=1\r\n";
    print "Set-Cookie: banner=1; path=/\r\n";
    &PrintHeader($charset);
    打印'', "\n";
    打印'', "\n";
    embed_login_head();
    打印 '' 。"\n";
    embed_overlay_prebody();
    打印
' 

' . "\n"; 我的 $url = $in{'page'}; 打开(横幅,$gconfig{'loginbanner'}); 尽管 () { s/LOGINURL/$url/g; 打印; } 关闭(横幅); &footer(); 返回; } 我的 $sec = lc(get_env('https')) eq 'on' ?“; 安全的” : ””; 我的 $sidname = $miniserv{'sidname'} || “西德”; 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); 打印'', "\n"; 打印'', "\n"; embed_login_head(); 打印 '' 。"\n"; embed_overlay_prebody(); 打印 '' 。"\n"; 如果(定义($in{'失败'})){ if ($in{'twofactor_msg'}) { 打印 ”

“,,”

\n"; 打印 '' 。"\n"; 打印' '。$theme_text{'login_warning'} 。 '
' 。&theme_text('session_twofailed', &html_escape($in{'twofactor_msg'})) 。"\n"; 打印 '' 。"\n"; } 别的 { 打印 '' 。"\n"; 打印' '。 $theme_text{'login_warning'} 。'
' 。"\n"; 打印 '' 。$theme_text{'theme_xhred_session_failed'} 。"\n"; 打印 '' 。"\n"; } } elsif ($in{'logout'}) { 打印 '' 。"\n"; 打印' '。$theme_text{'login_success'} 。'
' 。"\n"; 打印 '' 。$theme_text{'session_logout'} 。"\n"; 打印 '' 。"\n"; } elsif ($in{'timed_out'}) { 打印 '' 。"\n"; 打印' '。 $theme_text{'login_warning'} 。'
' 。"\n"; 打印 '' 。&theme_text('session_timed_out', int($in{'timed_out'} / 60)) 。"\n"; 打印 '' 。"\n"; } 打印 "$text{'session_prefix'}\n"; 打印 '' 。"\n"; 打印 ' ' . (&get_product_name() eq 'webmin' ? $theme_text{'theme_xhred_titles_wm'} : $theme_text{'theme_xhred_titles_um'} ) . '' 。"\n"; # 工艺标志 嵌入徽标(); # 登录信息 我的 $host; if ($gconfig{'realname'}) { $host = &get_display_hostname(); } 别的 { $host = get_env('server_name'); $host =~ s/:\d+//g; $host = &html_escape($host); } 打印 '' 。&theme_text('login_message') 。' ' 。$主机。'

' . "\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; if ($miniserv{'twofactor_provider'}) { 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; 打印 '' 。"\n"; } if (!$gconfig{'noremember'}) { 打印 ' ' . $theme_text{'login_save'} 。' ' . "\n"; } 打印 ''; 打印 ' ' 。 &theme_text('login_signin') 。'' 。"\n"; if ($text{'session_postfix'} =~ "href") { 我的 $link = get_link($text{'session_postfix'}, '丑陋'); 打印'[0]。'", "' . $链接->[1] 。 '", "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=700,height=500");return false;\' class="btn btn-warning"> ' . &theme_text('login_reset') . '' 。"\n"; } 打印 ''; 打印 '' 。"\n"; &footer();
ubuntu cgi perl login webmin
  • 1 个回答
  • 307 Views
Martin Hope
FireFoxII
Asked: 2020-02-25 05:09:37 +0800 CST

无法从 webmin 服务器获取 openssl 中的正确信息

  • 0

我在 debian 10 发行版上安装了 webmin 服务器。安装了不同的网站,例如:

website1.com
website2.com
website3.com
website4.com
website5.com

我想用这个命令获取有关 ssl 的信息

openssl s_client -connect website3.com:443
openssl s_client -connect website5.com:443

只有当我有一个linux客户端时,我才能得到正确的信息......在OSX或Windows平台上,我总是有关于 website1.com(!)

我认为这是一个服务器端的问题,但我不知道在哪里......

ssl openssl webmin
  • 1 个回答
  • 37 Views
Martin Hope
Fernando Torres
Asked: 2020-01-30 21:27:49 +0800 CST

如何在 Ubuntu Server 18.04 中合并硬盘

  • 1

我有一个运行良好的 Web 服务器,目前正在使用一个 2TB 的硬盘,但是同一台服务器还有另一个 2TB 的硬盘没有任何功能,所以我想对它进行分区以便合并它们以在我的服务器上腾出 4TB 的内存空间,有没有办法做这样的事情?我正在使用 Ubuntu Server 18webmin和virtualmin.

在此处输入图像描述

我真的是 linux 中的菜鸟做这种事情,所以我非常感谢你一步一步地告诉我一个例子,以便实现我的目标。

谢谢

ubuntu-18.04 webmin virtualmin
  • 1 个回答
  • 5498 Views
Martin Hope
user329119
Asked: 2016-11-21 23:39:11 +0800 CST

是否可以直接从 Bash 中读取 Webmin 日志?

  • 3

我通常从 Webmin 本身访问每个 Webmin 的日志,但由于某种原因,我无法访问该程序。

有没有办法从 Bash 访问这些日志?当我尝试使用正确的用户名和密码多次登录时,我只希望 Webmin 解释出了什么问题,这个操作在以前的安装中运行良好。

webmin
  • 1 个回答
  • 6250 Views
Martin Hope
treetop
Asked: 2016-09-30 08:13:20 +0800 CST

Webmin Bind - 避免“名为 reload 的服务”将数据传输到从 DNS

  • 1

我已经使用 bind 配置了一个 dns 和从属服务,它按预期工作。

最近,我设置了 Webmin,以便可以使用 GUI 更新区域文件。

我能够更新区域文件,并在 Webmin 中自动增加序列号,但此信息不会自动传输到我的从属 dns 服务器(***注意 - 我的从属 dns 和主 dns 绝对配置正确,因为它们有过去几个月通过仅命令行配置按预期工作)。

目前,在 Webmin 中更新区域信息后,为了将更新的信息传输到从 dns,我必须运行

service named reload

在命令行中。Webmin 中是否有可以复制此命令的功能?

谢谢

linux domain-name-system bind dns-zone webmin
  • 1 个回答
  • 1196 Views
Martin Hope
Jack Vale
Asked: 2016-09-18 09:34:34 +0800 CST

Block all Ports only open Postfix SMTP 端口

  • -3

我在我的服务器中使用 centOS,控制面板是 Webmin Virtualmin。我的服务器中有 2 个 IP:一个是默认 IP,第二个 IP 是附加 IP。我仅用于发送邮件的附加 IP,所以我想阻止我的附加 IP 的所有端口,除了 SMTP 端口。

iptables webmin
  • 1 个回答
  • 1038 Views
Martin Hope
shenkwen
Asked: 2016-05-03 10:07:01 +0800 CST

为什么我在 webmin 中看到的 cron 作业比在 `crontab -e` 中看到的要多得多?

  • 0

我刚刚开始学习 cron 工作。基本上我将使用 webmin 来管理我的 cron 作业,我也在阅读一些关于 cron 作业的基本信息。

到目前为止,我已经了解到/etc/crontab存储 cronjobs 并/var/spool/cron/crontabs为不同用户提供 cron 作业,当我这样做时,crontab -e我可以查看和编辑当前用户的 cron 作业。

Root 是我的 Ubuntu 14.04 中的唯一用户,我在上述位置找到的 crontab 文件中只有几行。但是,在 webmin 中,这就是我所看到的

在此处输入图像描述

这比我在这些文件中看到的要多得多。所以我的问题是:我在 webmin 中看到的所有这些 cronjobs 来自哪里?

cron webmin incrontab
  • 1 个回答
  • 85 Views
Martin Hope
Tall boY
Asked: 2015-12-09 04:38:05 +0800 CST

Webmin - 删除文件管理器书签

  • 0

我使用链接在 Webmin 文件管理器中创建了太多书签bookmark this page,现在当我单击bookmarks书签菜单窗口时,会出现并隐藏在浏览器中。我现在无法访问书签,请建议我重置书签或删除某些书签的方法。

谢谢

webmin
  • 1 个回答
  • 561 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve