Question by : 1 dynamic IP address, 2 virtual hosts on 1 box…can it be done?
Hi guys,
I know its a long shot asking here but hopefully someone (or some people) would be able to help me in setting up what i am trying to do.
I am setting up a web server which will host multiple websites using Apache web server 2 by using Virtual Hosts.
The server has its own internal ip address assigned (192.168.0.100) and each new website is assigned its own internal address (I currently have 2 sites: Frostnet.co.cc @ 192.168.0.102 and sg.webhop.net @ 192.168.0.101).
I am using my home internet to do this which is provided by sky and as they will not let me have a static IP address which would make this allot easier, I am having to use Dynamic DNS (which is providing the address of sg.webhop.net which is already a site on the box)
The box is also providing DNS services for the sites on the box.
Everything required is ported forward through the sky router (http, ftp, DNS, email, ssh) which works fine.
I can access http://sg.webhop.net which brings the corect web page up but when I access http://www.frostnet.co.cc it just takes too long to respond.
How can I setup this box to host multiple websites on 1 external IP address which is contstantly changing BUT assigned to sg.webhop.net through Dynamic DNS?
I am also using .co.cc for my frostnet domain name so I have pointed the DNS at the box on my network (sg.webhop.net) but it still dont work.
Any Ideas?
Thanks guys
Sorry forgot to add i am using a Linux system (CentOS 4.8)
Also after further testing if i ping www.frostnet.co.cc it comes back with the internal address of my home network of sg.webhop.net instead of the internal address of frostnet. This is pinging from a remote network as i ma currently at work.
Best answer:
Answer by Gardner
I host 4 web sites on my home server using a dynamic IP. My domains are registered through a dynamic DNS company, I have some software that updates all 4 domains at the same time when my IP changes.
I have not tried to do it using Virtual Hosts though. I do it with IIS.
If IIS can do it I’m sure Apache can, I’m just not sure how since I don’t use it.
Give your answer to this question below!
Share and Enjoy
Recent Comments