访问老出现拒绝?唉 无语
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
访问老出现拒绝?唉 无语
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
2014-10-22
1# C:\Windows\System32\drivers\etc\hosts文件》添加
127.0.0.1 www.aijianyue.com //域名或者名称(比如 aijianyue)
2# apache下\conf\httpd.conf文件
查找#Include conf/extra/httpd-vhosts.conf 把 #替换成空格
3# apache下\conf\extra\httpd-vhosts.conf文件》添加
<VirtualHost *:80>
ServerName localhost //依然保留localhost作为默认站点
DocumentRoot "D:/wamp/www"
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/wamp/www/aijianyue" //域名根目录或者任意位置文件
ServerName www.aijianyue.com //域名或者名称
<Directory "D:/wamp/www/aijianyue">
Require all granted
</Directory>
</VirtualHost>
举报