Reputation: 2718
I'm trying to config my server to use a directory /home/imagenesDBD and I Can't get it work, I have googled a lot, and made every sample I found, but nothing is working, i Just add the following to the httpd.conf file
Alias "/imagenesDBD" "/home/imagenesDBD"
<Directory "/home/imagenesDBD">
Options FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
The directory has 0777 permission setting
The context of the Directories are
I was Expecting to get this URL Working http://mydomain/imagenesDBD
and got the following error
403 - You don't have permission to access /imagenesDBD/ on this server.
thanks for your help
Upvotes: 2
Views: 3829
Reputation: 2718
The type context of /home/imagenesDBD
is home_root_t
.
SELINUX will only allow type context httpd_sys_content_t
.
You should change the type of security context and it can be done by running
$ sudo chcon -R -t httpd_sys_content_t /home/imagenesDBD
Here you can found chcon
manual chcon
Upvotes: 6
Reputation: 40971
Every directory from document root up to server root needs to be executable in order for apache to traverse.
Make home and root executable
sudo chmod +x /
sudo chmod +x /home
Also make sure you actually have an index page or Options Indexes
Upvotes: 0