I have a folder name
public that I set up Apache to serve files out of, for some reason I was getting a 403 with the error message:
You don't have permission to access / on this server.
My solution was to create another folder (
test) alongside it and use that to serve files out of.
What I don't understand is why if the permissions, as far as I can tell are identical between the two folders, yet using the first folder gives me permission errors.
How can I diagnose this further?
ls -l gives:
drwxrwxr-x 2 daniel daniel 4096 Apr 26 19:10 public drwxrwxr-x 2 daniel daniel 4096 Apr 26 19:10 test
<VirtualHost *:80> DocumentRoot /home/daniel/public/default/public/ DirectoryIndex index.html index.php LogLevel warn ErrorLog /home/daniel/public/default/log/error.log CustomLog /home/daniel/public/default/log/access.log combined </VirtualHost>
I have the following directive setup in
<Directory /home/daniel/public/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
ls -Zd public test gives
drwxrwxr-x 2 daniel daniel ? 4096 Apr 28 13:44 public drwxrwxr-x 2 daniel daniel ? 4096 Apr 28 13:44 test