0

我有一个 dyndns 域(比如说 example.dyndns.org)。目前我可以通过不同的端口访问不同的wep应用程序

  • example.dyndns.org:10001 获取 WebApp1
  • example.dyndns.org:10002 获取 WebApp2
  • example.dyndns.org 获取我的网站

现在我在我的 dyndns 配置文件中激活了通配符子域,我希望我的 apache 提供

  • web1.example.dyndns.org 和 example.dyndns.org:10001 上的 WebApp1
  • web2.example.dyndns.org 和 example.dyndns.org:10002 上的 WebApp2
  • example.dyndns.org 上的网站

所以目前我有以下设置:

Listen 80
Listen 443
Listen 10001
Listen 10002

<VirtualHost *:10001>
    ServerName ...
    DocumentRoot ...
</VirtualHost>

<VirtualHost *:10002>
    ServerName ...
    DocumentRoot ...
    ...
</VirtualHost>

<VirtualHost *:80 *:443>
    ServerName ...
    DocumentRoot ...
    ...
</VirtualHost>

现在我想添加

<VirtualHost web1.example.dyndns.org:80>
    ServerName ...
    DocumentRoot ...
    ...
</VirtualHost>

但这不起作用。任何建议为什么?

4

0 回答 0