我的WAMP 3 vhost(使用WAMP工具设置了vhost)停止工作,这是我的详细信息:
127.0.0.1 localhost
::1 localhost
127.0.0.1 projectx
::1 projectx
...
Listen 127.0.0.1:80
Listen [::1]:80
...
LoadModule vhost_alias_module modules/mod_vhost_alias.so
...
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/company/profordable/server/local/wamp/server/wamp64/www
<Directory "C:/company/profordable/server/local/wamp/server/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName projectx
DocumentRoot c:/company/profordable/projects/projectx/www
<Directory "c:/company/profordable/projects/projectx/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
这是apache访问日志:
::1 - - [17/Aug/2016:17:53:34 -0400] "GET / HTTP/1.1" 302 3054
我认为这意味着存在重定向,因为当我点击链接转到http://projectx/时,它会停留在localhost主页上。
非常感谢任何帮助。内特