Web Hosting Talk







View Full Version : Apache Help


Matthew_J
02-20-2002, 02:24 PM
I am trying to set up a Red Hat web server for my school. Since I have to set up a lot of accounts I don't feel like editing the httpd.conf file. Instied I am using the Red Hat's Apache Config program.

Now what I want it to do is just have all the accounts to be on an address like this: i.p.address/~user What I can't figure out is how to do that using that tool. Can anyone help? Thanks a bunch!

smartbackups
02-20-2002, 02:32 PM
You will have to edit httpd.conf just once. :)

Here are the relevant sections and change yours to match:

#
# 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 enabled
</IfModule>

#
# Control access to UserDir directories. The following is
# an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
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>



HTH.

Ahmad
02-20-2002, 02:37 PM
As smartbucks just said.

Now you should create unix user accounts for all the students in your school and tell them to put webpages in a directory called 'public_html' below their home directories.

Matthew_J
02-20-2002, 02:56 PM
You don't have to be logged in as root to edit the httpd file right?

Matthew_J
02-20-2002, 03:04 PM
Originally posted by smartbackups

#
# 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 enabled
</IfModule>


For some reason I can't find that in the httpd file. Is it suppose to be there or am I suppose to add it?? Thanks

Jedito
02-20-2002, 03:13 PM
You must be root to edit httpd.conf
in RH you can find httpd.conf in /etc/httpd/conf or /usr/local/apache/conf

If you can't see it there, try: locate httpd.conf ,that will show you the path.

Matthew_J
02-20-2002, 03:16 PM
I can find the httpd file but I can't find that part that smartbackups said to edit.