我有2个项目。 预报和网络客户项目。 在进行测试时,我需要克服同样的原产地政策,因此我无法在不同的港口与他们一起测试。
I used visual studio to map the api to: http://localhost/api
but the other project cannot be mapped to http://localhost/
. The reason I require it to be the root is because the applications contain references(forms, scripts, etc) to /
the root. After doing some reading, I need to publish to wwwroot
, which I dont want to do.
我的下一个选择 我的假设是将一个领域绘制到我的虚拟名录<代码>http:// localhost/web和http:// localhost/api
=>
someDomain.com
和
>。 我如何这样做? 编辑主卷
http://localhost/web app.com
http://localhost/api api.app.com
问题(解决其中任何一个问题都将对我工作):
- Point
http://localhost/
tohttp://localhost/web
to solve the referencing problem. - Create my virtual directory in
http://localhost/
; - Map a domain to the localhost virtual directories.