Click to See Complete Forum and Search --> : Frustrations with RH 8.0 and Apache


baz2
10-05-2002, 04:21 PM
This morning I replaced RH 7.3 with RH 8.0. Completely new install, not an upgrade. Then I went about to reconfigure a couple of virtual hosts I run on the school's lan, and after a couple of hours am thoroughly frustrated. What worked under 7.3 doesn't seem to work under 8.0.

For starters, Apache/httpd is up and running. Entering localhost or 127.0.0.1 in mozilla brings up the ubiquitious Apache test page. But then the mysteries start. I cannot actually find the "index.html" that is being loaded. The DocumentRoot setting in httpd.conf points to /var/www/html. But there are no files in that directory; only another directory named "usage." So where is Apache getting the index.html that it is loading when I put 127.0.0.1 in the browser address field?

Next, I try to configure "Virtual Host 0" with the RH GUI tool. I've done this numerous times with RH 7.2/7.3. But what worked for them isn't working for RH 8.0. Here's what I'm trying to do. I created a directory named rhdocs in /var/www/html, and copy files from the RH 8.0 docs CD to rhdocs, and rename index-en.html to index.html. It works fine locally. The trick now is to get it to function as the web page for a virtual host.

So I try using the GUI tool to configure httpd.conf. It looks right, with

/var/www/html/rhdocs

as the document root

and with the appropriate IP address and server name for a name based host. But what loads when I access the site remotely is not the index.html for the ../rhdocs directory, but the Apache test page. The httpd.conf looks okay. But it isn't working.

Any clues on what I'm missing?

johnwebb
10-09-2002, 11:32 PM
The default index page is now an error message that appears if there is not and index.html in the document root.

#
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>

baz2
10-10-2002, 02:52 PM
Thanks.

Someone on a mailing list pointed this out to me also. Once I disabled this section of the httpd.conf file, I could actually see what was happening, and eventually got things sorted out.