« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9691935 建立时间:2004年12月20日 |

| |
[linux]Apache出现 you don't have permission to access on this server.的解决 原创空间, 文章收藏, 软件技术
邢红瑞 发表于 2010/1/19 14:02:50 |
原因1 默认根目录是不能被访问的<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory>把这个改成<Directory/> Options Indexes FollowSymLinks AllowOverride None</Directory>
原因2 加入DirectoryIndex index.htmNameVirtualHost 192.168.100.139<VirtualHost 192.168.100.139><Directory "/www/sample">DirectoryIndex index.htm</Directory>ServerName www.sample.comDocumentRoot /www/sample</VirtualHost>
<VirtualHost 192.168.100.139><Directory "/www/sample2">DirectoryIndex index.htm</Directory>ServerName www.sample2.comDocumentRoot /www/sample2</VirtualHost> |
|
|