« Previous Next »

Thread: Running two websites with one IP address - Redirect by URL

Last post 12-04-2008 9:56 AM by Paul Lynch. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 12-04-2008, 9:19 AM

    Running two websites with one IP address - Redirect by URL

    I want to know if it’s possible to host two websites on the same server using the same port (80) and IP address. I am limited to using Microsoft IIS 7.0 not apache, but I can run PHP on it. (One of the sites is Joomla based)

    If I register two domain names to, example1.com and example2.com, to IP address xx.xxx.xxx.xxx is there a script I could run or an IIS setting I could change so that users are redirected to a different folder or index page based on which domain name they use? Also if this is done with a PHP script or something similar would search engines index both pages correctly?

    I know similar results can be achieved with Apache by using Virtual hosts in the httpd.conf file, but unfortunately I don’t know if this is possible with IIS.

    Thanks for the help

  • 12-04-2008, 9:39 AM In reply to

    Re: Running two websites with one IP address - Redirect by URL

    you may use Host Headers when you are using the same IP and same port... in that way you will be able to use both the websites....

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 12-04-2008, 9:56 AM In reply to

    Re: Running two websites with one IP address - Redirect by URL

    Hi,

    Yes it is. Refer to this online documentation :

    IIS 7.0: Configure a Host Header for a Web Site

    Regards, 

    Paul Lynch | www.iisadmin.co.uk
Page 1 of 1 (3 items)
Microsoft Communities