LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-31-2004, 01:23 AM   #1
bai_design
LQ Newbie
 
Registered: Jun 2003
Location: London, Ontario
Distribution: RedHat 6/9 Slackware
Posts: 28

Rep: Reputation: 15
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.
 
Old 08-31-2004, 04:43 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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
 
Old 08-31-2004, 04:14 PM   #3
bai_design
LQ Newbie
 
Registered: Jun 2003
Location: London, Ontario
Distribution: RedHat 6/9 Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
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...

Last edited by bai_design; 08-31-2004 at 04:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache UserDir Problem sbb Linux - Software 13 04-10-2006 06:29 PM
Apache UserDir ]SK[ Linux - Software 4 06-18-2005 12:10 PM
Apache userdir. collen Linux - Networking 1 01-28-2005 12:24 PM
Apache UserDir Abbaddon Slackware 12 09-15-2004 11:28 AM
Question about apache UserDir Gilion Linux - Software 4 10-10-2003 12:28 AM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration