Ubuntu更改Apache DocumentRoot的403错误分析
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”。