Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

IIS7 Configuring two sites, with same file folder but different index page

A client has a site with three "sub-sites" that client has decided needs different domains for the different sections.

I've configured IIS7 with the domains etc - all work fine, however when I try and tell one of the sites to have one index page, and the other to have another - they seem to sync up - and both settings get added to both.

I want one site to have the default to be index-a.html, and the other to have index-b.html (both files sit in the same folder).

I'm aware that I could create subfolders, and change all the links in the html etc - but I want to try and avoid this if I can.

As all the site files are in the same folder (For ease of updates etc) - is there a way I can make it so that when I change the setting of one site in IIS (with the same folder) that it wont effect the other site (with the same folder).

Hope this makes sense.

Help please :)
0
BenjyAdams
Asked:
BenjyAdams
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
They use the same web.config so you can't do what you want but what you can do is use another directory and have the default document redirect to the file you require.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now