SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot DirtDiga's Avatar
    Join Date
    Jan 2002
    Location
    Belize City, Belize
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple websites with IIS

    I want to host more than one website with unique domain names on the same server using one IP address.

    Anybody know how to do this?

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Virtual Hosts.

    It's all very well documented on Apache's web site
    ----Adopt-a-Sig----
    Your message here!

  3. #3
    SitePoint Zealot DirtDiga's Avatar
    Join Date
    Jan 2002
    Location
    Belize City, Belize
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Randem,

    Thanks for the reply and the link. I was wondering how to do this with IIS.

    Any ideas?

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Wayne Luke
    ------------


  5. #5
    SitePoint Enthusiast antibob's Avatar
    Join Date
    Jun 2002
    Location
    cleveland, oh
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the following is an xerpt from the folks over at http://www.jhsoft.com :

    http://www.jhsoft.com/tutor/vh_pws.htm


    PWS does not support multiple web-sites directly like IIS on NT4/2000-Server.

    It does however support redirecting HTTP requests through ASP script, which provides a method for hosting multiple sites on the same IP address.

    For example let say you have 3 domain names (dom1.com, dom2.com and dom3.com) and want to host a different web-site for each one.

    First, in the web server root directory, create a sub-directory for each site.
    For example:

    c:\inetpub\wwwroot\dom1
    c:\inetpub\wwwroot\dom2
    c:\inetpub\wwwroot\dom3

    Place all the html, image, asp, etc. files for each web-site in the appropriate sub-directory.

    Next in the web server root directory, create a default asp file
    c:\inetpub\wwwroot\default.asp

    - with the following script code:

    <%
    Select Case Request.ServerVariables("HTTP_HOST")
    Case "dom1.com", "www.dom1.com"
    Response.Redirect "http://www.dom1.com/dom1"
    Case "dom2.com", "www.dom2.com"
    Response.Redirect "http://www.dom2.com/dom2"
    Case "dom3.com", "www.dom3.com"
    Response.Redirect "http://www.dom3.com/dom3"
    End Select
    %>


    -ab

  6. #6
    SitePoint Enthusiast antibob's Avatar
    Join Date
    Jun 2002
    Location
    cleveland, oh
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    this is why

    This is why I moved from IIS on wind2k to Apache.

    good luck

  7. #7
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by DirtDiga
    Thanks for the reply and the link. I was wondering how to do this with IIS.
    Yeah, I suppose that was in the subject line wasn't it. ;-)
    Although it would make more sense to put a relevant detail like that into the body of the question.
    ----Adopt-a-Sig----
    Your message here!

  8. #8
    SitePoint Member
    Join Date
    Mar 2003
    Location
    US
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DirtDiga
    I want to host more than one website with unique domain names on the same server using one IP address.

    Anybody know how to do this?

    We do this with success. No redirection needed.

    Use your host file in the <ServerRoot>\system32\drivers\etc\ folder.

    Add your the IP address of the machine and the "domain name" using the format:
    127.0.0.1 localhost
    # at the beginning is a "comment"

    In IIS setup your virtual server using (All Unassigned) as your IP address and select the advanced options. There you will see "Multiple identities for this web site." Add the name you just added to your host file and start the virtual server.

    It works well for us and we have about 25 sites running on the same box with no problems.

    Good luck.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •