Red Hat 9 GUI Virtual Hosts setup
Is there any step by step information on using Ret Hat 9 GUI to setup Name Based Virtual Hosts or IP Based in Apache. I havenít been able to find one, so I bought a book on Mastering Red Hat Linux 9 and Iím still not getting any results. Iíve been trying for over a week and Iím stuck, so as a last resort Iím posting here.
1st. Do I need to setup the DNS server, if so, do I need Caching?
Here is my current setup.
I am behind a linksys router and have port 80 forwarded to my serverís IP e.g. 192.168.1.25
I installed ddclient to update my dynamic IP for Zoneedit which I have setup for 2 of my sites. This works fine, enough said.
Using a browser, when I type in e.g.mywebsite1.com and e.g.mywebsite2.com I get the Apache test web page - ďThis page is used to test the proper operation of the Apache Web server after it has been installed. If you can read this page, it means that the Apache Web server installed at this site is working properly.Ē
Great, I know the error page noindex.html file works. So Apache is working.
Now Iím trying to use the Red Hat GUI interface to set all this stuff up. So when I start the Apache Configuration and the information on the Apache Configuration is as follows
Server Name: 192.168.1.25,
All available addresses on port 80
Name Default Virtual Host Ė I changed nothing here
Added Virtual Host Properties
Virtual Host Name: mywebsite1.com I tried e.g.mywebsite1.com
IP Address: 192.168.1.25:80
Host Name e.g.mywebsite1.com
As for the IP address, Iíve also tried *:80 and it still did not work.
I created another eth0:1 for IP 192.168.1.26 and eth0:2 for IP 192.168.1.27
Went through setting up the DNS server to have e.g.mywebsite1.com point to 192.168.1.26 and e.g.mywebsite2.com point to 192.168.1.27 but it didnít help so I stopped the service.
Here is what is now in the httpd.conf
ServerAdmin: e-mail address
I stoop the restart the httpd service after making any changes.