I am using apache virtualhosts for a couple sites I want to run off my ubuntu 14.04 server. My setup works if sites are under /var/www
but if i try to run one under /home/myuser/www/sitename/
i get a 403 permissions error. I checked permissions over an over now. My /home directory permissions are
drwxr-xr-x 5 root root 4096 Mar 7 02:05 .
Here is ls -al from home/myuser/www
myuser@zeppelin:~/www$ ls -al
total 24
drwxrwxr-x 3 myuser www-data 4096 Sep 3 19:39 .
drwxrwxr-x 18 myuser myuser 4096 Sep 3 19:29 ..
-rwxr-xr-x 1 myuser www-data 4096 Sep 3 19:39 ._.DS_Store
-rwxr-xr-x 1 myuser www-data 6148 Sep 3 19:39 .DS_Store
drwxrwxr-x 2 myuser www-data 4096 Sep 3 20:18 sitename
Here is results of ps auxwww | grep -i apache
root 17188 0.0 0.9 178496 17520 ? Ss 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17190 0.0 0.1 20488 2396 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17193 0.0 1.3 180792 23560 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17194 0.1 1.4 180740 26432 ? S 20:25 0:01 /usr/sbin/apache2 -k start
www-data 17195 0.1 1.6 181472 29616 ? S 20:25 0:01 /usr/sbin/apache2 -k start
www-data 17196 0.0 0.3 178544 5652 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17197 0.0 1.1 179960 21176 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17202 0.0 1.2 180804 23296 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17203 0.0 1.1 179960 21176 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17204 0.0 1.4 182564 25304 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 17205 0.0 1.2 180804 23284 ? S 20:25 0:00 /usr/sbin/apache2 -k start
myuser 17307 0.0 0.0 4688 812 pts/0 S+ 20:47 0:00 grep --color=auto -i apache
And then here is my vhost file
#
# Example.com (/etc/apache2/sites-available/www.example.com)
#
<Directory /home/myuser/www/sitename>
Order allow, deny
Allow from all
Options FollowSymLinks Includes ExecCGI
AllowOverride All
DirectoryIndex index.php index.htm index.html
</Directory>
<VirtualHost *:80>
ServerName www.sitename.com
ServerAlias sitename.com
# Indexes + Directory Root.
DirectoryIndex index.php index.html
DocumentRoot /home/myuser/www/sitename/
# Logfiles
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>