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
Main tab
Server Name: 192.168.1.25,
Available Addresses
All available addresses on port 80
Virtual Hosts
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
Aliases 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
<VirtualHost 192.168.1.25:80>
DocumentRoot /var/www/mywebsite1/htdocs/
ServerAdmin: e-mail address
ServerName e.g.mywebsite1.com
ServerAlias e.g.mywebsite1.com
HostNameLookups off
<VirtualHost>
I stoop the restart the httpd service after making any changes.
Thanks
David
|