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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to host multiple domain names on one IP address? 1

Status
Not open for further replies.

rcbatlinux

Technical User
Mar 30, 2001
80
US
I'm looking into hosting a couple of web sites that each have their own domain name. I have one static IP address. Is there a way to have each domain point to one IP and then somehow have it load the proper website on the host?

Rick
 
yes its possible.You can have name based hosting i.e. Domains which could be resolved on a single IP . ..But what exactly you are looking at ??? I mean are you running your own web server ...is it of linux or Nt ?? What you could do is give the IP as your primary DNS and have your websites run on this IP but only potential problem..if your primary dns crashes your websites wiould go down :(

Anyways give me complete details of what u r running r u running your DNS ??is the server nt or Linux and all ..probably i would be able to help you :) Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
or better for more details you can get in touch with our WebHosting Div's administrator you can mail him at ravish@interwebspiders.com Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
No matter how you slice it, the multi-homed IP must reside on a web server which supports "host-header" re-direction. On NT, this is supported in IIS 4.0 and above and on Linux, Apache does this on the current version. It's a simple configuration for the webserver admin to do. You may be able to simulate this with some scripting languages such as asp,cf,php3,etc.. but the scripts have to be able to pickup the domain name from the environment variables.

Hope this helps,
GJ
 
I think Apache would handle this well with it's Virtual Hosts which you set up and all the sites will point to that one IP, i suggest you look up on Apache
 
Thank you sounds like I have some good options.

rcbatlinux
 
if u wanna use Linux or UNIX, with Apache for the web server and BIND to do DNS, i suggest u do the following:

register these domain names and have them point to your DNS server as their primary name server.. u could also add redundancy by specifying another name server as a secondary, either on your local or another subnet... u do this with the TLD guys such as Network Solutions or InterNIC

then setup a web server running the Apache web server, current stable version is Apache-1.3.19... there is a file that can help u handle virtual domains, where the URL header is identified in the HTTP request, and the web server will serve the appropriate web site from the disk on the web server.. u can have several web sites this way on the same server/IP address...

the bottom line is, DNS is as essential as the web server... the DNS host is what will be looked out for on the Apache web server...

good luck.. AKNIT
 
Is it possible to create something like this with an ISDN line from home?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top