Apache 403 - looking .htaccess in parent's parent directory

Posted by Basil on Server Fault See other posts from Server Fault or by Basil
Published on 2012-06-22T20:12:44Z Indexed on 2012/06/22 21:18 UTC
Read the original article Hit count: 204

Filed under:
|
|
|

I am having this problem (apache2, ubuntu 12.04)

I have put all my sites in /home/username/vhosts folder I have added permissions to home and username to be x and chmod -r 777 on vhosts Added /etc/hosts to access my sites with desired names Did a2enmod rewrite

But still I have this error:

[Sat Jun 23 00:05:23 2012] [crit] [client 127.0.0.1] (13)Permission denied: /home/username/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

WHY is it not readable? I did

sudo -s
su - www-data

and with that I can correctly list the /home/username dir

What is wrong with me or apache?

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu