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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Home Dir /www/ directories

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I have a system running Mandrake 8.2 for a friend and i would really appreciate it if i could get a little conf help for apache.
Basically, i have a group of users, i would like it to be configured so that if that user creates a 'www' directory in their home dir, that the HTML therein can be accessed by going to Can anyone help? This is a farley rudamentary question, thanks in advance,
Rob
 
This is done by using UserDir. The following will create a web space in the users home dir called public_html. Look for this section in your .conf file:

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

Then create a container just like your main server.

<Directory /home/*/public_html>
AllowOverride none
Options MultiViews Indexes
Order allow,deny
Allow from all
</Directory>

You can use just about any directive that you use in you main server. You can also give them their own cgi-bin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top