cannot get user directories to work (e.g. /~user)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Apache is working as expected for http://localhost/ and two virtual
directories (these will later be where my two websites are served from).
What I can't get working is my user directory, e.g.
http://localhost/~cparker/

Here is the error:

===
Forbidden

You don't have permission to access /~cparker/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use
an ErrorDocument to handle the request.
Apache/2.0.52 (Fedora) Server at server.swatgear.com Port 80
===


At first I was running with SELinux and found some info that said I
needed to adjust the permissions, but after following what a Redhat
document said it still didn't work. So I turned SELinux off and rebooted
and it still didn't work.

Here is some configuration info:

httpd.conf:

<IfModule mod_userdir.c>
    UserDir www
</IfModule>

<Directory /home/*/www>
    AllowOverride FileInfo AuthConfig Limit Options
    Options SymLinksIfOwnerMatch IncludesNoExec

    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>

DirectoryIndex index.php index.html


Directory permissions:

[cparker@server ~]$ all
total 72
drwx------  4 cparker apache  4096 Aug 21 21:26 ./
drwxr-xr-x  4 root    root    4096 Aug 21 18:21 ../
-rw-------  1 cparker cparker 1212 Aug 21 21:51 .bash_history
-rw-r--r--  1 cparker cparker   24 Aug 21 18:21 .bash_logout
-rw-r--r--  1 cparker cparker  191 Aug 21 18:21 .bash_profile
-rw-r--r--  1 cparker cparker  124 Aug 21 18:21 .bashrc
-rw-r--r--  1 cparker cparker  383 Aug 21 18:21 .emacs
drwxr-xr-x  4 cparker cparker 4096 Aug 21 21:33 www/
[cparker@server ~]$ cd www
[cparker@server ~/www]$ all
total 40
drwxr-xr-x   4 cparker cparker 4096 Aug 21 21:33 ./
drwx------   4 cparker apache  4096 Aug 21 21:26 ../
-rw-r--r--   1 cparker cparker   24 Aug 21 21:33 index.php
drwxrwxr-x   6 cparker cparker 4096 Aug 21 20:58 sites/
drwxr-xr-x  16 cparker cparker 4096 Aug 21 20:57 tests/
[cparker@server ~/www]$



Where have I gone wrong? Where should I look next?



Thanks,
Chris.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux