【发布时间】:2016-02-29 03:58:05
【问题描述】:
我正在使用asp.net mvc 编写一个应用程序,该应用程序现在针对微软的kestrel 服务器运行。它工作正常,我在启动时使用定义如下的hosting.json 文件向它传递值;
{
"server": "Microsoft.AspNet.Server.Kestrel",
"server.urls": "http://localhost:5000;https://localhost:5001"
}
有没有办法给“服务器”起个名字,这样它就不会一直报告为localhost 或undefined?
【问题讨论】:
-
您想要完成什么需要服务器名称?
-
:(我只是想让 Glimpse 停止在服务器标签上说“未知”。
标签: asp.net-core kestrel-http-server