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

2 sites with domain names on IIS under Win2k Pro

Status
Not open for further replies.

Zeux

Programmer
Oct 19, 2001
2
FR
Hello,

Does anyone know if it is possible to host 2 internet sites, both with a different domain name, under the same server with 'windows 2000 professional' OS ?
 
I've had trouble with this myself, but I ended up using an asp script to re-direct the user, depending on the domain they typed in. Here's an example...
Contents of index.asp(default page)
======================

<%
routage = Request.Servervariables(&quot;SERVER_NAME&quot;)
Select Case routage
//Domain #1
Case &quot;micro.sytes.net&quot;
Response.Redirect (&quot;micro.htm&quot;)
//Domain #2
Case &quot;pctech.no-ip.com&quot;
Response.Redirect (&quot;home.htm&quot;)

Case Else
Response.Redirect (&quot;index.asp&quot;)
End Select
%>

You can add as many domains as you want. Just modify that to suit your needs :)
 
No there is an easy way with iis.
This is called virtual server.
Open iis set up an site in standart way.
Just when you set this up give domain name to site header name.
If you didnt give before from the properties of the site select web site and then select advanced and from there give header name i mean domain name.
With same ip and from same server you can do this and this is called virtual server..
 
But how can you make each domain goto a different web page? It's no problem getting multiple domains to point to one.

This is the effect we're trying to get:

goes to...
d:\websites\website#1\index.htm

goes to...
d:\websites\website#2\index.htm

How do you tell a domain(if you have multiple) to goto a certain directory/page in IIS?
Thanks.
 
i am sorry.
i just recognized that os was win2kpro.
i think you v-cannot do this in pro because you cannot setup dns server.
So how will you give header names?According to what?
You have to use a external dns and i think this is not possible in win2kpro.
that2s why you cannot add a new web site with win2kpro and iis 5.0..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top