Welcome to WebmasterWorld Guest from 54.196.233.208

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache - UserDir directive

First time setup of Apache...

     
9:40 pm on Jul 30, 2003 (gmt 0)

New User

10+ Year Member

joined:May 9, 2003
posts:21
votes: 0


I'm a bit confussed as to how exactly the 'UserDir' directive operates. I basically want to have a public_html directory in /home/user/ which responds to myhost/~user and I'm a tad confussed.. :(
6:57 pm on July 31, 2003 (gmt 0)

Administrator

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 8, 2003
posts:3783
votes: 2


Hello again, shell. :) All you need in httpd.conf is:

UserDir public_html

And you'll get the desired behavior as you've described.
7:29 am on Aug 1, 2003 (gmt 0)

New User

10+ Year Member

joined:May 9, 2003
posts:21
votes: 0


I'm getting 404s :(
2:25 pm on Aug 1, 2003 (gmt 0)

Administrator

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 8, 2003
posts:3783
votes: 2


What do the logs say? (TM)

Check your error log, and see what physical file apache is trying to request.

3:52 pm on Aug 1, 2003 (gmt 0)

New User

10+ Year Member

joined:May 9, 2003
posts:21
votes: 0


httpd-access.log shows nothing unexpected.. shows the get requests

http-error.log doesn't show anything either :\

5:14 pm on Aug 1, 2003 (gmt 0)

Administrator

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 8, 2003
posts:3783
votes: 2


Do you have a <Directory> entry allowing access for /home/* in httpd.conf?
6:43 pm on Aug 1, 2003 (gmt 0)

New User

10+ Year Member

joined:May 9, 2003
posts:21
votes: 0


Doh!

Thanks