|
Home > Archive > Web Servers on Unix and Linux > August 2004 > mod_userdir not working with apache2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mod_userdir not working with apache2
|
|
| Boris \BXS\ Schulz 2004-08-05, 8:02 am |
| 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>
| |
| Joshua Slive 2004-08-05, 5: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.
|
|
|
|
|