mod_userdir not working with apache2
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > mod_userdir not working with apache2




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    mod_userdir not working with apache2  
Boris \BXS\ Schulz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-04 01:02 PM

Hi,

I am using Suse 9.1 with apache2 and have a problem with my user
directories.
I do believe I have included the correct syntax in httpd.conf.local,
default-server.conf, mod_userdir.conf and /etc/sysconfig/apache.
The error I get when accessing a userdir via myserver.com/~user
is "File does not exist: /mywwwrootdir/~user"
So what this means is pretty clear, the mod_userdir is not running,
otherwise it would have been an access to /home/user/public_html, but
why? I can see that the module should be loaded from the
/etc/apache2/sysconfig.d/loadmodule.conf
Could it be that I need the file mod_userdir.c? I cannot locate it on my
drive but I guess, it would have been included with the installation, if
it really was necessary.
It would be nice if someone could paste me the lines referring to
mod_userdir from a working configuration or tell me where I went wrong.

greetings, BXS

This is from my default_server.conf:
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
UserDir enabled test
Include /etc/apache2/mod_userdir.conf
</IfModule>

This is from mod_userdir.conf
<IfModule mod_userdir.c>
UserDir public_html

<Directory /home/*/public_html>

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec

<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>

<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>

</Directory>

</IfModule>





[ Post a follow-up to this message ]



    Re: mod_userdir not working with apache2  
Joshua Slive


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-04 10:49 PM

Boris "BXS" Schulz wrote:
> Hi,
>
> I am using Suse 9.1 with apache2 and have a problem with my user
> directories.
> I do believe I have included the correct syntax in httpd.conf.local,
> default-server.conf, mod_userdir.conf and /etc/sysconfig/apache.
> The error I get when accessing a userdir via myserver.com/~user
> is "File does not exist: /mywwwrootdir/~user"
> So what this means is pretty clear, the mod_userdir is not running,
> otherwise it would have been an access to /home/user/public_html, but

> why? I can see that the module should be loaded from the
> /etc/apache2/sysconfig.d/loadmodule.conf
> Could it be that I need the file mod_userdir.c? I cannot locate it on
my
> drive but I guess, it would have been included with the installation,
if
> it really was necessary.
> It would be nice if someone could paste me the lines referring to
> mod_userdir from a working configuration or tell me where I went
wrong.

The only line you need is
UserDir public_html

You should start by removing all the <IfModule ...> and </IfModule>
lines.  They only serve to hide useful error messages (like, for
example, if mod_userdir is not included in the server).

Second, you should remove all the UserDir directives except the single
one I suggest above.  At the moment you have duplicate and irrelevant
directives.  (The "UserDir disabled root" is not a bad idea, and you
should put it back after you get things working.)

Joshua.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:35 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register