Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hosting multiple sites

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I am trying to host multiple websites on the same server with one IP address. I basically want to have 3 domain names point to the same website. Below is a suggestion I got from someone here and was wondering if anyone can point me to somewhere with step by step instructions on how to do this:

""""If you are only hosting the one site on the server don't bother with the host headers. Just setup the site to listen on port 80. Then setup your DNS servers for the 3 domains to point to that IP address. """"

Thanks for any help!!

Paul
 
You can only setup one Web Server on port 80, if they are on the same box. You have to use Host Headers if you only have one IP address and they are on the same box. Host Headers work great, we use them without any problems. Sure, if you only have one web site, you don't need to use Host Headers.

Mike


=====================================
The good ole days weren't always good
and tomorrow ain't as bad as it seems
=====================================
 
Thanks Koonan, thats how I originally tried it was with the host headers, however, if I have the first site there with no host header everything works fine, the second i add a host head to the first site and dont even add the other 2 domain names to it when trying to hit the site it comes up with "there is no website configured for this site" or something very similiar to that. I hope this makes sense and hope you may be able to offer some advice. Thanks in advance!!!

Paul
 
There isn't much to configure on Host Headers, but mistakes can happen. I would start by looking at the configuration.

1) What address/URL did you enter for your web site? Did you create a and website.com? You don't have to but I usually do.
2) What port did you choose? It should be 80 for all web sites.
3) What IP address did you assign the Host Header to?

Mike


=====================================
The good ole days weren't always good
and tomorrow ain't as bad as it seems
=====================================
 
1. I have only created a I will try adding the other one and see what results i get.

2. Port 80 is chosen for all of them.

3. They are assigned to 192.168.1.201 which is the address of the server.

Thanks again for your help!!!

Paul
 
If you do an nslookup on does it return 192.168.1.201? The second host header is only for users who forget to use the WWW.

Mike


=====================================
The good ole days weren't always good
and tomorrow ain't as bad as it seems
=====================================
 
All of the sites are pointing to my webserver 192.168.1.201, however the 2 URL's that I am adding bring me to my login screen for my router, but the router is setup to forward port 80 requests to the webserver and the first url works fine and goes to the website like it should.....hope this makes sense...any thoughts?

Paul
 
Your router does not support loopback, this is why you get the router login page. You need to configure your internal DNS to point to the local IP of your webserver, or use the local hosts file for testing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top