简体   繁体   中英

How browsers find applicationHost.config file?

I was trying to change the name of web.config and read some Q/A about it where the final solution was to reference from web.config to an extra config file using configSource .

I wonder how browsers know that there is config file in c:\\programfiles\\system32\\....\\ applicationHost.config when they want to connect to localhost? In other words how IIS notifies the browsers to look for this file rather than the web.congif itself? There is no reference to this file in web.config in the root of wwwroot.

You can't change the name, it must be web.config by convention.

It's also not the browser that reads these config files but the IIS webserver. IIS 'merges' the settings from applicationHost.config with the web.config(s) of your website and applies them as a whole.

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