<VirtualHost 192.168.1.120> ServerAdmin zz167@zz167.com DocumentRoot "/usr/local/www/aaa/" ServerName 192.168.1.120 <Directory "/usr/local/www/aaa/"> Order deny,allow Deny from all </Directory> ErrorLog "logs/www.ip.com-error_log" CustomLog "logs/www.ip.com-access_log" common </VirtualHost> <VirtualHost www.bbb.com> ServerAdmin zz167@zz167.com DocumentRoot "/usr/local/www/bbb/" ServerName www.bbb.com <Directory "/usr/local/www/bbb/"> Order deny,allow Allow from all </Directory> ErrorLog "logs/www.bbb.com-error_log" CustomLog "logs/www.bbb.com-access_log" common </VirtualHost> <VirtualHost www.aaa.com> ServerAdmin zz167@zz167.com DocumentRoot "/usr/local/www/aaa/" ServerName www.aaa.com <Directory "/usr/local/www/aaa/"> Order deny,allow Allow from all </Directory> ErrorLog "logs/www.aaa.com-error_log" CustomLog "logs/www.aaa.com-access_log" common </VirtualHost>我的虚拟主机如上面配置,这样出现了一个问题,就是 www.aaa.com这个可以访问,但是 www.bbb.com这个就报错了
错误如下:
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
请教一下,这个如何解决?<VirtualHostwww.bbb.com>
<VirtualHostwww.aaa.com>
要么把域名换成IP,要么把域名换成*好。
都试过了,一样都denyfromall了还这么访问403本来就是访问受限的意思啊
楼上+1另外看看你网站路径是否正确,参看下我的空间里边的apache整合和排错吧
http://my.oschina.net/7shell/blog/107691
都denyfromall了还这么访问403本来就是访问受限的意思啊
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。