VS2017 IIS Express - 多租户站点本地调试

multi-tenancy (subdomain) site local debug with IIS Express (VS2017):

1. add your local domain in Windows host file like below

127.0.0.1      domainlocal.cn
127.0.0.1      a.domainlocal.cn
127.0.0.1      b.domainlocal.cn

2. .vs/host/applicationhost.config under solution dir

<site name="Project.Web" id="2">
                <application path="/" applicationPool="Project.Web AppPool">
                    <virtualDirectory path="/" physicalPath="..\src\Project.Web" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:62114:localhost" />
                    <binding protocol="http" bindingInformation="*:80:domainlocal.cn" />
                    <binding protocol="http" bindingInformation="*:80:a.domainlocal.cn" />
                    <binding protocol="http" bindingInformation="*:80:b.domainlocal.cn" />
                </bindings>
            </site>




展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读