我有一个服务器,它有两个web应用程序,配置如下:
app1:
www.domain1.com
has https version
app2:
www.domain1.com
has not https version
这是我的VirtualHost domain1配置:
Listen 443
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
<VirtualHost --ip--:80>
ServerName www.domain1.com
DocumentRoot /usr/local/ROOT
<
我想是这样的问题吧。我得到了这个非常基本的网络设置,需要帮助设置一些地址转发。
如下图所示,所有流量都通过eth0接口进入(85.123.32.23)。外部dns也被设置为将所有主机定向到此ip。
现在,我到底该如何过滤传入的请求到每个框?止痛药是静止的!
我的网络布局:
📷
我不想通过分配大量的港口等来解决这个问题。
在我的一厢情愿的想法中,这样的事情会很好:)
set service nat rule 10 type destination
set service nat rule 10 inbound-interface eth0
set service nat rule 10 dest
可能重复: 最后(我认为并希望)使用Apache和虚拟主机配置SSL证书时会出现问题。
最后,我将apache2设置为为所有子域获取一个证书。
[...]
# Go ahead and accept connections for these vhosts
# from non-SNI clients
SSLStrictSNIVHostCheck off
# Apache setup which will listen for and accept SSL connections on port 443.
Listen 443
# Listen for virtual host req
阅读,有一部分是这样写的:
If no matching ServerName or ServerAlias is found in the set of virtual hosts containing the most specific matching IP address and port combination, then the first listed virtual host that matches that will be used.
我有一个包含许多虚拟主机域的vhost文件。问题是,当我键入服务器IP时,我应该转到root,但不是,正如apache文档所述,我被带到了第