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

2 Web site with 1 IP adress 2

Status
Not open for further replies.

AGA

IS-IT--Management
May 10, 2001
362
AU
Is it possible to have to 2 web site on a server with only 1 IP address.
 
Yes but you will need a DNS server to point to the different IP addresses on your web server for the different sites (ie; 192.168.0.100, 192.168.0.101, etc...). If InterNic is just pointing to your web server, no.

Hope this helps, WMH
MCP+I, MCSE
smashfreakb.gif
 
Add on to my last reply.
You could use host headers if you want to host more than one web site using one IP. Just thought about that. So yes you can.

WMH
MCP+I, MCSE
smashfreakb.gif
 
In your first reply you said that my DNS server must also point to a different IP address on my web server, that means that I will need a different IP address. I am not sure what exactly did you mean by having a host header for hosting different web site.
 
Yes u can.. u can host many websites (assuming u're running win2k server or advanced) with just one IP using host headers. I remember replying to many questions like this but I found a site that would save me the writing so here it is:

:)

They explained it very good. Exactly as how I did it awhile ago. Good luck.

T

P.S. Keep in mind that if SSL certs are involved then you'll need more IPs.
 
But does the other domain name be registered for example
My domain Name is with IP address 202.35.24.21 and I want to host a domain does this domain name xyz be registered with any static IP address. Or just be a registered domain name without any IP address. I am bit confused in this issue. Help Please.
 
Nono... all domain names need to have an ip associated with it (or else the dns servers wouldn't know how to forward requests :)) So what you do is have the share the same IP as then use IIS to direct the traffic to the appropriate site. Think of host headers as the point where they look @ the train's name.. then either direct it to the east or west station. They both share the same route (the IP).

Good luck.

T
 
Can I help to clarify?

A when you buy/register a domain name you are required to point it at 2 DNS server addresses, Primary & Secondary.

These Domain Name Servers (DNS) tell the clients where to look for the IP adress of the server that hosts your domain{s}, This can be either one to many, many to many or many to one.

One to many = one domain pointing to many web servers "IP addresses" all hosting the same web pages, (usually called Round Robin DNS).

Many to many = a number of domain names pointing to a number of webservers.

Or What you were looking for:
Many to One = A number of domain names {2 in your case} pointing to one web server that has "virtual hosting of the two sites".
What then happens is as the client browser makes a request to his/her PC looks at DNS and is told that "resolves" to 123.456.789.1 and the browser then passes the request for a web page to that address. Now! in the information passed by the clients browser "header information" is a value that contains the domain name the Web server at 123.456.789.1 sees this and says "I know where to send this" its one of my virtual servers who's root folder is \\share1\fredb\
If the client browser sends a header value of to 123.456.789.1, then the server says "Aha! this is one of my virtual servers who's root folder is \\share1\bennyh\
So here endith todays lesson,

Believe me this over simplyfied and the domains & IPs are only for example.

I hope it helps?
L:¬)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top