LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache and multiple UserDir errors (https://www.linuxquestions.org/questions/linux-networking-3/apache-and-multiple-userdir-errors-224657/)

bai_design 08-31-2004 01:23 AM

Apache and multiple UserDir errors
 
I was currently trying to setup a small webserver using Apaches UserDir settings and I ran into a problem were it would only work for one user and the second user would get a forbidden page... I was wondering if anyone nows/can help me with this problem....
Here are some snipplets of the httpd.conf file:
Code:

<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disable root
    UserDir enabled jeremiah panda

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disable" line above, and uncomment
    # the following line instead:
    #
    UserDir /home/*/.home

</IfModule>
/****** I wasn't exactly sure hwo to set this section of code up proberly ******/
Alias /~jeremiah "/home/jeremiah/.home/"
Alias /~panda "/home/panda/.home/"
<Directory "/home/*/.home">
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes 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>

And the errors from the log file are:
Code:

[Tue Aug 31 01:45:48 2004] [error] [client 127.0.0.1] (13)Permission denied: access to /~panda/ denied
[Tue Aug 31 01:45:57 2004] [error] [client 127.0.0.1] (13)Permission denied: access to /~panda denied
[Tue Aug 31 01:46:02 2004] [error] [client 142.59.240.181] (13)Permission denied: access to /~panda denied
[Tue Aug 31 01:47:19 2004] [error] [client 127.0.0.1] (13)Permission denied: access to /~panda denied
[Tue Aug 31 01:48:07 2004] [error] [client 142.59.240.181] (13)Permission denied: access to /~panda denied
[Tue Aug 31 01:59:11 2004] [error] [client 142.59.240.181] (13)Permission denied: access to /~panda/ denied

now I am not sure if I set the premissions and such correctly for this setup but heres how the users and such were setup:
user jeremiah was setup with a UserID of 711
user panda was setup with a UserID of 712
they are both setup to be members of the servers apache group.
Also I was wondering if some one could clarify the relationship between the userid 711 and the UserDir settings. Thanks in advance.

Proud 08-31-2004 04:43 AM

Is this with apache1 or 2?

I've messed a little with 2, and I dont think you need those aliases, and I suggest you check the permissions of /home/panda/.home.
I dont think the users need to be members of the apache group, and also think you should have your User_Dir section as:

UserDir disabled
UserDir enabled jeremiah panda
UserDir .home

bai_design 08-31-2004 04:14 PM

it is apache 2

I tried what you suggested and Apache failed to reload, I got this in the error log:
Code:

[Tue Aug 31 17:20:22 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Aug 31 17:20:22 2004] [notice] LDAP: SSL support unavailable
[Tue Aug 31 17:20:22 2004] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed

I do not know why it is saying there is no space left on the device when there is still 2 gigs of free space.:(

The permission as set as 755 as it says in the Manual...


All times are GMT -5. The time now is 08:52 AM.