Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed with user directories

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I want to set up userdirectories. I see that in apache documentation, the userdirectories are supposed to show up like follows:

However when I do that, I get forbidden.
BTW- Is there any way of getting rid of the tilde?

Thanks

RNINJA
 
Apache must be installed with mod_userdir:

Look for the following in httpd.conf:

LoadModule userdir_module libexec/mod_userdir.so

AddModule mod_userdir.c

And

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

If these are not present, try to add them in their respective areas (look for LoadModule and Addmodule) and place the <ifModule directive down below.

If you already have these in your httpd.conf, then you need to look for something like:

<Directory /home/*/public_html>

and see if it is somehow configured to disallow web viewing. You can even try to comment out that whole section with &quot;#&quot;s.

And make sure you are setting up your users with a &quot;public_html&quot; directory inside their user directory: (/home/username/public_html).

I don't know of a quick way to get rid of the tilde, but it should be possible with mod_rewrite.
 
I do have LoadModule and addModule set.
I also have the directory container with necessary directives. However I still get forbidden.

Any other Ideas?


Rninja
 
I got the info. I had to either set the /home/* directory with permissions 755, or set the group to nobody with permissions 750.
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top