WAMP端口100上的Apache 2.4.9虚拟主机在Windows 10 503上出错

时间:2015-08-05 20:56:21

标签: apache wamp virtualhost

当我尝试设置虚拟主机时,我一直收到503错误。我可以设置一个别名文件夹,但在虚拟主机设置上没有运气。

我的主机文件如下所示:

127.0.0.1       localhost
::1             localhost
127.0.0.1       appmarket.local
::1             appmarket.local

我的vs-hosts文件如下所示:

<VirtualHost *:100>
    DocumentRoot "C:/nanomarketvhost/local"
    ServerName appmarket.local
    ServerAlias appmarket.local
    ErrorLog "logs/appmarket-error.log"
    CustomLog "logs/appmarket-access.log" common
    <Directory  "C:/nanomarketvhost/local">
        AllowOverride All
        Options Indexes FollowSymLinks
        Require local
    </Directory>
</VirtualHost>

<VirtualHost *:100>
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ServerAlias localhost
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common
    <Directory  "C:/wamp/www">
        AllowOverride All
        Options Indexes FollowSymLinks
        Require local
    </Directory>
</VirtualHost>

我已经注释了httpd.conf中的行来加载虚拟主机。

0 个答案:

没有答案