I have a server running IIS 6 with multiple websites that I maintain on it. Each site gets promoted to a separate web host, depending on the customer's selection. A representation of the development server's configuration is below.
DEV Website
I have been able to get the Customer1\Survey\Default.asp page to reference the Customer1\Header.asp include file by turning on the Enable Parent Paths in IIS 6.0 and using <!-- #Include File="../Header.asp" --> (Note that I would prefer to use this without the .. in it to reference the customer's root folder.). Now the Header.asp file loads an image that is in the Customer1\Images folder and since this is being called from the Default.asp page in the Survey folder, I have no way to reference it without using a .. in the <IMG> tag in the Header.asp file. Doing this would cause all of the pages in the Customer1 root to try to step down to the root of the webserver and it would never find the file.
I know that I could use VIRTUAL, but that wouldn't work once the site was uploaded to the web host.
(I know this is a rather convoluted scenario, but I cannot think of a way to make it any easier to read. Sorry.)
Is there a way to set this up so that I can get all of these sites to work together properly on the dev server and still work properly once uploaded to the web host's server.
DEV Website
Customer1
Images
Survey
Customer2
Customer3
Customer4
I have been able to get the Customer1\Survey\Default.asp page to reference the Customer1\Header.asp include file by turning on the Enable Parent Paths in IIS 6.0 and using <!-- #Include File="../Header.asp" --> (Note that I would prefer to use this without the .. in it to reference the customer's root folder.). Now the Header.asp file loads an image that is in the Customer1\Images folder and since this is being called from the Default.asp page in the Survey folder, I have no way to reference it without using a .. in the <IMG> tag in the Header.asp file. Doing this would cause all of the pages in the Customer1 root to try to step down to the root of the webserver and it would never find the file.
I know that I could use VIRTUAL, but that wouldn't work once the site was uploaded to the web host.
(I know this is a rather convoluted scenario, but I cannot think of a way to make it any easier to read. Sorry.)
Is there a way to set this up so that I can get all of these sites to work together properly on the dev server and still work properly once uploaded to the web host's server.