[techtalk] Newbie: Apache question

Jeff Dike jdike at karaya.com
Wed Dec 8 14:23:23 EST 1999


> I have set up Apache.  I was wondering if anybody could let me know as
> to  where I will have to put my web pages (like a simple page with no
> forms of  any sort).

In one of the Apache config files (it's in my /etc/httpd/conf/srm.conf) find 
this:

> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory, but
> # symbolic links and aliases may be used to point to other locations.
> 
> DocumentRoot /home/httpd/html
> 
> # UserDir: The name of the directory which is appended onto a user's home
> # directory if a ~user request is recieved.
> 
> UserDir public_html

DocumentRoot is the directory in which Apache is going to look for your Web 
pages.

If you want to have your own pages in your home directory via 
http://www.yoursite/~user, then they should go in ~user/public_html by default.

Change either according to taste...

				Jeff



************
techtalk at linuxchix.org   http://www.linuxchix.org




More information about the Techtalk mailing list