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?
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?