简体   繁体   English

IIS站点配置

[英]IIS sites configuration

I have configured 2 sites in my local. 我在本地配置了2个站点。

1 - Default Web Site (Application pool - DefaultAppPool) port 80* 1-默认网站(应用程序池-DefaultAppPool)端口80 *

2 - My web site (Application pool - his own application pool), my binding is site.test.local port 80, I have in my hosts file 127.0.0.1 site.test.local 2-我的网站(应用程序池-他自己的应用程序池),我的绑定是site.test.local端口80,我的主机文件中有127.0.0.1 site.test.local

If the both are running I don't have problems, "My web site" is running correctly, but if I disable Default Web Site site, the browser raise this error "503 Service Unavaialble. No server is available to handle this request" 如果两者都在运行,我没有问题,则“我的网站”正在正确运行,但是如果我禁用了默认网站,浏览器将显示此错误“ 503服务不可用。没有服务器可用于处理此请求”

How do I prevent that having that 503 error? 如何防止出现503错误?

You need to put your "My web site" in the same level path of the "Default Web Site", using another App_Pool and other port. 您需要使用另一个App_Pool和其他端口将“我的网站”放置在“默认网站”的同一级别路径中。

Right click on Sites -> Add Site 右键单击站点->添加站点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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