How browsers find applicationHost.config file?

社会主义新天地 提交于 2019-12-13 20:21:58

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/50525867/how-browsers-find-applicationhost-config-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!