Reputation: 8285
So I have the following situation. My root folder is /var/www/html. If I have a file in there called test and I do a
wget ip-address/test
everything is good. But if I add a folder called bla in html and I do the following
wget ip-address/bla/test
I get a 500 error. If I just do a
wget ip-address/bla
I get a 403 permission denied. I tried going into httpd.conf file and added the directory as follows:
<Directory "/var/www/html/bla">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And that didn't change anything. Any help would be greatly appreciated.
Upvotes: 1
Views: 3679
Reputation: 71
Check if the folder 'bla' you added has read permissions for process owner of httpd? Use chmod/chown to create access permissions and try again.
Upvotes: 0
Reputation: 570
If you want to access a directory listing, you need:
<Directory "/var/www/html/bla">
Options Indexes
...
</Directory>
The directory listing will only work if the "DirectoryIndex" directive is not defined.
Upvotes: 2