I'm trying to create a virtual host that have path to user directory like this /home/user1/dev
My *.conf file is it /etc/apache2/sites-available/mysite.conf, like this
<VirtualHost *:80>
ServerName mysite
DocumentRoot /home/user1/dev
ServerAlias mysite
<Directory /home/user1/dev>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I add group www-data to directory /home/user1/dev and user1 belong to group www-data too.
Also I add to /etc/hosts
127.0.0.1 mysite mysite
But I get 403 Forbidden
You don't have permission to access / on this server.
I'm using
Server version: Apache/2.4.10 (Debian)
Debian GNU/Linux 8.2 (jessie)
ls -la /home/user1/dev
drwxrws--- 5 user1 www-data 4096 dic 2 01:53 .
drwxr-x--- 99 user1 user1 4096 dic 2 03:49 ..
-rwxrwx--- 1 user1 www-data 54 feb 27 2014 index.html
-rwxrwx--- 1 user1 www-data 23 dic 2 01:53 index.php
Any help or other suggestion to point path to user directory?