I have created a virtualHost setup according to this website: https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu
This part of the setup apparently works. However, I want to have the project folder in another location than htdocs so that the work gets backed up automatically to the cloud with my other documents.
The VirtualHost file looks like this:
<VirtualHost 127.0.0.2:80> DocumentRoot "/home/dave/Dropbox/Documents/Projects/MyApp" ServerName lcover.local DirectoryIndex index.html <Directory "/home/dave/Dropbox/Documents/Projects/MyApp"> Options All AllowOverride All Require all granted </Directory> ErrorLog "logs/lcover.local-error_log" CustomLog "logs/lcover.local-access_log" common </VirtualHost>
When I go to http://lcover.local, I get the 403 error.
I am pretty sure that this is an owner / permissions problem and I have tried several combinations but cannot get it to work.
How should I set the permissions for the directory & files?