4
回答
看看我的apache虚拟主机配置问题在哪
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   
NameVirtualHost 127.0.0.1:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
     ServerAdmin webmaster@localhost
    DocumentRoot "G:/code/php"
    ServerName localhost
    ErrorLog "logs/local.log"
    CustomLog "logs/local.log" common
</VirtualHost>
<VirtualHost *:80>
     ServerAdmin webmaster@athome.cn
    DocumentRoot "G:/code/php/athome/web"
    ServerName athome.cn
    ErrorLog "logs/athome.log"
    CustomLog "logs/athome.log" common
</VirtualHost>

我不太清楚问题出在哪啊,localhost就可以,athome.cn就不行了



举报
周智超
发帖于4年前 4回/168阅
顶部