View Single Post
  #1  
Old 16th January 2012, 08:55 PM
kjiwa Offline
Registered User
 
Join Date: Jan 2012
Location: Seattle
Posts: 4
httpd cannot read from /home

I'm having some trouble with httpd on Fedora 16.

Code:
$ rpm -q httpd 
httpd-2.2.21-1.fc16.i686
$ cat /etc/redhat-release 
Fedora release 16 (Verne)
I have the following vhost config:

Code:
NameVirtualHost *:80

<VirtualHost *:80>
 ServerName localhost
 Alias /tmp/ /home/kjiwa/tmp/
</VirtualHost>
I've ensured that the correct permissions are set on /home/kjiwa and /home/kjiwa/tmp so that the apache user can read from those locations.

When I try to access http://localhost/tmp/index.html (a file which exists), I get a 403. The httpd error log shows this:

Code:
[Mon Jan 16 12:48:50 2012] [error] [client 127.0.0.1] (13)Permission denied: access to /tmp/index.html denied
httpd can read from other locations, though, such as /srv/httpd or /var/www. Any ideas about what I have to change so that it can also read from my home directory?

Kamil
Reply With Quote