Home Blog Wiki
Twitter Subscribe to PHP Blog RSS Feed Email RSS

Ubuntu更改Apache DocumentRoot的403错误分析

没有评论 四月 17th, 2011

Ubuntu下更改 Apache DocumentRoot到用户目录,出现 403 错误 403 Forbidden Forbidden You don’t have permission to access / on this server 多数情况下,这个消息的出现多数是由于DocumentRoot 的相关配置错误 # 这一部分定义网站或虚拟主机的根目录 DocumentRoot /var/www # 这个一部分给出前面定义根目录的访问权限和所有特性,因此,两部分的变更是同步的 <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> 我将 DocumnetRoot 定义的目录更改为 /home/user/public_html(假定用户名为user),<Directory…部分也作出相应的更改,按照以往的经验,这样就已经可以了。但是在Ubuntu Server10.04上遭遇了403 Forbidden。按我的想法<Directory…部分就是赋予访问网站的用户访问/home/user/public_html目录的权限,这又是哪里的权限限制了?由于想不到别的可能性,所以“Google it”。

FreeBSD下Apache问题收集

没有评论 七月 5th, 2008

1. No such file or directory: Failed to enable the ‘httpready’ Accept Filter 环境:FreeBSD 6.3-Release,Apache-2.2.8 相关模块:accf_http module (the function is to buffer incoming connections until a certain complete HTTP requests arrive.)用于检测请求的数据是否完整,否则抛弃,防止客户端恶意请求。

Page 1 of 11