I have Linux RedHat 6.2 running on a box on my LAN.
I have installed Apache 1.3.20.
(I am concerned with getting this working on my LAN only right now)
I can hit my server through localhost. The IP for my server is 192.168.1.3
I have added a virtual host to my httpd.conf file, the host I want to add is called
www.orbitalsoftware.ca and I also edited my /etc/hosts file as such: 192.168.1.3
www.orbitalsoftware.ca
The problem is that when I type the URL into the browser I go straight to the Default Apache Web Server Page that you get if your installation was successful. Ideally the server should see that URL "www.orbitalsoftware.ca" and direct the request to the path I put in the DocumentRoot directive in the Virtual Host Definition.
<VirtualHost 192.168.1.3>
ServerName
www.orbitalsoftware.ca
ServerAlias orbitalsoftware.ca *.orbitalsoftware.ca
DocumentRoot /home/httpd/orbital
ServerAdmin
hostmaster@orbitalsoftware.ca
</VirtualHost>
Now I would like to give you one more piece of information that may or may not be useful in helping me isolate what is happening.
When I view my httpd.conf for the 'Main Server Configuration' I have listed as DocumentRoot "/home/httpd/html"
That directory contains an index.html file that states the Apache Install was successful.
I decided to change that index.htm so that it only rendered a few words (because of another problem entirely - IE had garbled characters - yet to solve that one) and I went back to the browser and called up the URL to localhost. Much to my amazement I did not get my recently edited index.htm file instead I received the same "Apache Install Successful..." page.
I find this bizarre because the default page for the server is not /home/httpd/html/ as listed in the conf file.
I will be eagerly awaiting help on this one.
Thank-you in advance
Neil Jubinville