NOTE: We're running IIS 8.5 on Windows Server 2012.
We have a site setup and we're trying to create Applications under this site in IIS for the DEV, QA, UAT, BETA environments we want to deploy to.
We have a structure like the following in IIS:
- Sites
- MAIN SITE (points to empty folder; linked to our main domain, ex. www.ourtestdomain.com)
- BETA (this is an Application)
- DEV (this is an Application)
- QA (this is an Application)
- UAT (this is an Application)
- MAIN SITE (points to empty folder; linked to our main domain, ex. www.ourtestdomain.com)
We set it up like this so that each environment has it's own AppPool, so that when we deploy using Octopus it only restarts that specific environment AppPool.
The problem we're running into is that the include files can't be found when usinginclude virtual="/includes/include1.asp". However, if we change it use include file="includes/include1.asp" then the site finds the include file just fine.
This is fine, if we only had to change a few files, but we would need to change hundreds of files.
Is there a better way to setup IIS so that we can have the separate environments like I described above? We don't really want to buy new domains or a wildcard SSL just for a test server.
Ideally we'd like our URLs to looks like the following:
http://www.ourtestdomain.com/DEV
http://www.ourtestdomain.com/QA
After running into the "include file not found" issue we made some more changes and got the above URLs working, until we logged in, then the DEV or QA part would be removed from the URL. If we added it back, then the include file not found" issue came back.