I develop projects that I've located in /home/user/projects directory. This directory is chmod 777. The problem is that I'm always getting Error 403 Forbidden when I try to access this directory or any subdirectory. This is how my /etc/apache2/sites-available/000-default.conf looks like:
<VirtualHost *:80> ServerName localhost ServerAdmin [email protected] DocumentRoot /home/user/projects ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Options +FollowSymLinks <Directory /> Options FollowSymLinks AllowOverride None Order allow,deny allow from all </Directory> <Directory /home/gtakacs/projects> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all Require all granted </Directory> </VirtualHost> What's wrong with this? When I used /var/www as my document root, everything worked.