English 中文(简体)
用于当地东道市IIS7虚拟名录的地图领域
原标题:Map domain to IIS7 virtual directory in localhost

我有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

问题(解决其中任何一个问题都将对我工作):

  1. Point http://localhost/ to http://localhost/web to solve the referencing problem.
  2. Create my virtual directory in http://localhost/; enter image description here
  3. Map a domain to the localhost virtual directories.
问题回答

你们可以在当地设立一个“反面代理”来做你们想要的事情。

基本上,如果客户与<条码>连接,http:// localhost/api,贵方代表可将这一请求转至<条码>http://somedomain.com/api。 然后获得答复,然后将答复转回原客户。 从客户的角度来看,正在向当地东道方提出请求,答复来自当地东道方。 没有打字服务器。

IIS团队宣布反转录病毒()。

If you have IIS6 or don t want to use the Microsoft extension, there are other options. One is IIRF.





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签