Request.Url有错误的端口信息 [英] Request.Url has wrong port information

查看:168
本文介绍了Request.Url有错误的端口信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Web应用程序使用南希和托管在Asp.Net,在Azure上。结果
在发展中,我使用IIS防爆preSS和天青的计算仿真。

My web application is using Nancy, and is hosted in Asp.Net, in Azure.
In development, I am using IIS Express, and Azure's Compute Emulator.

在制作,网页中打开HTTP
我的机器上调试,网页中的 http://127.0.0.1:81/test 结果打开
但是,在我NancyModule,我越来越:

In production, the homepage opens in http://mydomain/test
Debugging on my machine, the homepage opens in http://127.0.0.1:81/test
But, in my NancyModule, I'm getting:

Request.Url == http://127.0.0.1:82/test

82,为什么?也许它是与IIS防爆preSS显示在 http://127.255.0.0:82/

推荐答案

82是IIS是通过服务于应用程序的端口。是你想用它做什么?

82 is the port that IIS is serving the app through. Are you trying to do something with it?

这篇关于Request.Url有错误的端口信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆