Unsolved
This post is more than 5 years old
2 Intern
•
357 Posts
0
4125
May 21st, 2004 01:00
HELP-WEB SERVER(not about wireless networking troubleshooting)
Ok i have my Apache 2.0 all set up and ready right(i have red hat 9) but when i go to my website i get the default apache page saying that the site is up and running! How do i set it up to open my home page instead of that?



jwatt
4.4K Posts
0
May 21st, 2004 01:00
In httpd.conf, you need to set the "ServerRoot" to the directory containing your configuration data,
and "DocumentRoot" to where your Web pages are.
Example:
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
ServerRoot "/usr/local/apache"
# 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 "/usr/local/www/data"
See the httpd manpage for more things that can be set.
Jim