简体   繁体   中英

Creating a Site with 3 Virtual Directories (for ASP.NET applications)

I need to create a Site and in 3 subfolders/virtual directories for three web applications. What I don't understand is what files should be in the Parent/Site folder? Here is the example of the folder structure:

c:\inetpub\wwwroot\SiteName\applic1
c:\inetpub\wwwroot\SiteName\applic2
c:\inetpub\wwwroot\SiteName\applic3

Therefore, when I create the site (SiteName) and point to the physical folder \\SiteName and there are no files there, how will it work?

IIS will return a 403 status code and a 403 page if there are no files there. By default IIS will look for one of the following:

Default.html
Default.asp
index.htm
index.html
iisstart.htm
default.aspx

You can disable or add more files to look for if you go to the Default document section for the current web application in the IIS manager.

So you could leave the parent folder empty if you want to serve the default 403 page. Maybe serving some static page is nicer though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM