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
    • 最新
    • 标签
主页 / user-119004

Constantine Loukas's questions

Martin Hope
Constantine Loukas
Asked: 2012-08-06 06:57:59 +0800 CST

从专用网络通过公共网络到互联网的隧道 apt 流量

  • 2

我在以下配置下有 4 个服务器:
服务器 1 和 3(分别是 Web 服务器、邮件服务器): NIC1:公共网络,连接到 Internet
NIC2:专用网络,服务器之间的通信。

服务器 2 和 4(DB 和备份服务器):
NIC:专用网络,服务器之间的通信。

我正在尝试找到一种方法,将来自服务器 2 和 4 的 apt(仅)流量通过公共网络上连接的两台服务器之一路由到互联网,这样我就不必将这两台服务器连接到公共网络仅适用于apt。有什么方法可以做到这一点?

非常感谢。

apt
  • 1 个回答
  • 4248 Views
Martin Hope
Constantine Loukas
Asked: 2012-07-08 08:55:13 +0800 CST

邮件服务器或私人或公共局域网?

  • -2

我目前只有一台服务器运行 Web 服务器、数据库服务器和邮件服务器,我想将服务分布在 3 台服务器中以减少单台服务器的压力。我必须在每台服务器上安装 NIC,因此我计划使用 2 个 LAN 来提供额外的安全层。在专用网络(仅供这些计算机使用的网络)上,我将连接数据库服务器、一台额外的备份服务器和 Web 服务器的一个 NIC。在公共网络(连接到 Internet 的那个)上,我将连接 Web 服务器的另一个 NIC。但是我不知道在哪个网络上连接邮件服务器。它需要直接连接到 Internet 还是通过 Web 服务器传输流量?

太感谢了。

email-server local-area-network private
  • 1 个回答
  • 137 Views
Martin Hope
Constantine Loukas
Asked: 2012-05-28 10:45:36 +0800 CST

通配符 dns,不存在的子域指向主网站

  • 1

在开始之前,我想说我已经阅读了有关 serverfault 的相关问题,但我找不到解决方案。

这是我的问题。我正在使用第三方 DNS,并且添加了通配符 A 记录 *.biglle.com,它指向我服务器的 IP 地址。我遇到的问题是每个不存在的子域都指向 biglle.com(那些确实存在的可以正常工作)。我想指出,biglle.com 的 apache 网站配置不是默认配置 (000-default.conf),而是一个单独的配置 (biglle.com.conf)。这就是我无法理解的。不存在的子域应该指向默认配置文件,不是吗?

这是 biglle.com.conf 的一部分

<VirtualHost 192.168.1.54:80>
SuexecUserGroup "#1003" "#1004"
ServerName biglle.com
ServerAlias www.biglle.com
ServerAlias webmail.biglle.com
ServerAlias admin.biglle.com
DocumentRoot /home/biglle/public_html
ErrorLog /var/log/virtualmin/biglle.com_error_log
CustomLog /var/log/virtualmin/biglle.com_access_log combined
ScriptAlias /cgi-bin/ /home/biglle/cgi-bin/
ScriptAlias /awstats/ /home/biglle/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/biglle/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/biglle/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/biglle/fcgi-bin/php5.fcgi .php5
</Directory>
<Directory /home/biglle/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.biglle.com
RewriteRule ^(.*) https://biglle.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.biglle.com
RewriteRule ^(.*) https://biglle.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
IPCCommTimeout 31
FcgidMaxRequestLen 1073741824
<Files awstats.pl>
AuthName "biglle.com statistics"
AuthType Basic
AuthUserFile /home/biglle/.awstats-htpasswd
require valid-user
</Files>
Alias /dav /home/biglle/public_html
Alias /pipermail /var/lib/mailman/archives/public
<Location /dav>
DAV on
AuthType Basic
AuthName "biglle.com"
AuthUserFile /home/biglle/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5
RewriteEngine off
</Location>
RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) https://biglle.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) https://biglle.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
php_value memory_limit 32M
</VirtualHost>

目前我正在使用 php hack 检查域名是否在 /etc/apache2/sites-enabled/ 中有相应的 .conf 文件,如果没有,它会显示 404 错误,但这显然不是永久的解决方案。此外,此 hack 仅适用于每个子域的索引页面。

由于我的代表不超过 10 个,我无法在此处发布示例。您可以在此处的粘贴中看到它们:http:
//pastebin.com/cYY3ffYz

编辑:apache2ctl -S 输出

root@biglle:/# apache2ctl -S
[Sun May 27 22:00:11 2012] [warn] NameVirtualHost 91.132.57.179:80 has no VirtualHosts
VirtualHost configuration:
192.168.1.54:80        is a NameVirtualHost
         default server biglle.com (/etc/apache2/sites-enabled/biglle.com.conf:1)
         port 80 namevhost biglle.com (/etc/apache2/sites-enabled/biglle.com.conf:1)
         port 80 namevhost fwnh.biglle.com (/etc/apache2/sites-enabled/fwnh.biglle.com.conf:1)
         port 80 namevhost itemlist.biglle.com (/etc/apache2/sites-enabled/itemlist.biglle.com.conf:1)
         port 80 namevhost lithisdoma.gr (/etc/apache2/sites-enabled/lithisdoma.gr.conf:1)
         port 80 namevhost think.biglle.com (/etc/apache2/sites-enabled/think.biglle.com.conf:1)
         port 80 namevhost topirouni.biglle.com (/etc/apache2/sites-enabled/topirouni.biglle.com.conf:1)
         port 80 namevhost videos.biglle.com (/etc/apache2/sites-enabled/videos.biglle.com.conf:1)
192.168.1.54:443       is a NameVirtualHost
         default server biglle.com (/etc/apache2/sites-enabled/biglle.com.conf:58)
         port 443 namevhost biglle.com (/etc/apache2/sites-enabled/biglle.com.conf:58)
wildcard NameVirtualHosts and _default_ servers:
*:80                   biglle.com (/etc/apache2/sites-enabled/000-default:1)
Syntax OK
domain-name-system subdomain wildcard
  • 2 个回答
  • 1427 Views
Martin Hope
Constantine Loukas
Asked: 2012-05-28 00:21:33 +0800 CST

BIND 是如何工作的?[复制]

  • 0
这个问题在这里已经有了答案:
10 年前关闭。

可能重复:
什么是胶水记录?

我只是无法理解在我网站运行的同一位置(或 IP)运行 BIND 的服务器如何向其他人提供 DNS 记录。我的意思是因为 BIND 是一个 DNS,它的目的是让每个人都知道“嘿,example.com 的 IP 是 xxx.xxx.xxx.xxx”谁让每个人都知道那个服务器(DNS)在哪里运行?

domain-name-system bind
  • 1 个回答
  • 4257 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