« Previous Next »

Thread: different default documents in sites pointing to same physical folder

Last post 03-20-2009 10:37 AM by Dr_Hitokiri. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 02-23-2009, 5:47 AM

    • fidel
    • Not Ranked
    • Joined on 06-24-2002, 10:19 AM
    • Posts 1

    different default documents in sites pointing to same physical folder

    Hi there,

    I have 2 sites set up in IIS7 pointing to the same physical folder. One site (extranet) is configured to accept https via the external wan nic on port 443, the other (intranet) http via the internal lan nic on port 80. In IIS6 it was possible to assign different default documents to each of the two sites, but in IIS7 when I change the default doc in one site it also changes in the other. Surely there must be a way to do this in IIS7? I' ve tried messing with ApplicationHost.config but that didn't work.

    Hans

  • 02-23-2009, 8:14 AM In reply to

    Re: different default documents in sites pointing to same physical folder

    Hi,

    If you make the change in web.config and both sites share the same web.config then the change will affect both sites. Read this article for details on how to fix this problem :

    IIS 7.0: Configure Settings for a Site, Application, Virtual Directory, or URL by Using Appcmd.exe

    Regards,

     

    Paul Lynch | www.iisadmin.co.uk
  • 03-20-2009, 10:37 AM In reply to

    Re: different default documents in sites pointing to same physical folder

    Another workaround to this is to create 2 directories for EXTRANET and INTRANET. Point the EXTRANET default doc to EXTRANET folder and do the same for INTRANET to it's INTRANET directory and fefault doc. Leave all virtual directories and file as is.

     Each web site now will have its own default document, which I am assuming that the default document redirects to the proper virtual directory? This way you now have different IPs on the websites and directing to their own deefault document

Page 1 of 1 (3 items)
Microsoft Communities