【发布时间】:2016-12-06 17:48:56
【问题描述】:
我有一个 Apache 服务器,它处理端口 8080 上的两个虚拟主机,一个是私有的(本地主机),另一个是公共的(互联网)。私有虚拟主机工作正常,但公众不断将所有公共请求重定向到本地主机,我不确定我做错了什么。请帮忙!以下是
httpd-vhost.conf文件:
# Virtual Hosts
<VirtualHost *:8080>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:8080>
ServerName mydomain.com
DocumentRoot c:/wamp64/www/App
<Directory "c:/wamp64/www/App/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>
#
此外,这是在 Windows Server 2012 上运行 WAMP / Magento 并托管在 Azure 中。非常感谢!
【问题讨论】:
标签: php apache virtualhost wampserver