We are running Windows Server 2008 R2 with IIS 7.5 and have 4-5 Classic ASP sites to install. The main site is stored in wwwroot and the other sites are stored in folders below wwwroot.
We have 1 IP address for the server. How do I configure IIS to allow folks to browse/test the sites before domain names are pointed to te server?
When I setup one of the sites in a subfolder of wwwroot and assign a separate port to it, I receive a message stating:
Config Error Cannot add duplicate collection entry of type 'add' with unique key
attribute 'value' set to 'index.asp'
The error points to web.config in the given sites' folder as follows:
<configuration>
<system.webServer>
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="ASP" verbosity="Verbose" />
<add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
<add provider="ISAPI Extension" verbosity="Verbose" />
<add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI" verbosity="Verbose" />
</traceAreas>
<failureDefinitions statusCodes="400-999" verbosity="Error" />
</add>
</traceFailedRequests>
</tracing>
</system.webServer>
How do I remedy this error and permit IIS to render the site?
Put each ASP app in its own site. Bind each site to the same IP, but use a different Host Header on each site. Register those host headers in your local DNS server.