Click to See Complete Forum and Search --> : an apache question


junebug
03-22-2001, 07:06 PM
i know that this is a php forum but lots of you have experience with apache so please be a little understanding. i have apache on my red hat 7.0 system. i want to make user directories so i can login as a user and use the web server. i made adjustments to the httpd.conf file but i still get a 403 forbidden message when i try to access it.

i used the sample:
<Directory /home/*/public_html>
that is in the httpd.conf file. just uncommented it. any reason that i can't access it?

and yes i restarted the server. actually i rebooted the whole system.

any help or points in the right direction?

thanks in advance

Anon
03-22-2001, 07:16 PM
Chris,

Do you have following module compiled in or loaded as a dynamic one?

# 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>

Pavel

junebug
03-23-2001, 11:18 AM
the module is a compiled one

pchytil
03-23-2001, 12:54 PM
so just enter following lines into your httpd.conf

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

and create in user home directory public_html subdirectory like:
~user1/public_html

create index.html file in it, then test it

http://www.yourdomain.com/~user1

and you should see content of index.html

Pavel