What is the difference between App URL
and Launch URL
from ASP.NET Core
?
ASP.NET Core中的App URL和启动URL有什么区别?
With these settings I can access my app both on HTTP
on port 4099 and HTTPS
on port 44363
but first it launch on HTTPS
.I'm using VS 2017 and if I use the same url for App and Launch I get:
通过这些设置,我可以通过端口4099上的HTTP和端口44363上的HTTPS访问我的应用程序,但首先它在HTTPS上启动。我使用VS 2017,如果我使用相同的URL用于App和Launch我得到:
An error occurred attempting to determine the process id of dotnet.exe
which is hosting your application. One or more errors occurred.
尝试确定托管您的应用程序的dotnet.exe的进程ID时发生错误。发生了一个或多个错误。
If I remove Launch URL
and keep App URL
with HTTPS
I get the same error.
如果我删除启动URL并使用HTTPS保留App URL,我会得到相同的错误。
What is the difference between them and how to redirect every HTTP
to HTTPS
? Microsoft is not helping right now: link to microsoft docs
它们之间有什么区别以及如何将每个HTTP重定向到HTTPS?微软目前没有提供帮助:链接到微软文档
1 个解决方案
#1
5
As far as i can tell:
据我所知:
- Launch Url is the url you host your dotnet core application on and to which port the kestrel server is listening.
- Websettings, AppUrl is the url IIS is listening to. IIS (which is basically a reverse proxy here) will forward all the http request comming from the AppUrl to the Launch URL.
Launch Url是您托管dotnet核心应用程序的URL以及Kestrel服务器正在侦听的端口。
Websettings,AppUrl是IIS正在监听的URL。 IIS(这里基本上是反向代理)将转发从AppUrl到启动URL的所有http请求。
If you remove the Launch URL kestrel has no port to listen to, and will throw an error on startup, or fallback to port 5000.
如果删除启动URL,则无法侦听端口,并且在启动时会抛出错误,或者回退到端口5000。
#1
5
As far as i can tell:
据我所知:
- Launch Url is the url you host your dotnet core application on and to which port the kestrel server is listening.
- Websettings, AppUrl is the url IIS is listening to. IIS (which is basically a reverse proxy here) will forward all the http request comming from the AppUrl to the Launch URL.
Launch Url是您托管dotnet核心应用程序的URL以及Kestrel服务器正在侦听的端口。
Websettings,AppUrl是IIS正在监听的URL。 IIS(这里基本上是反向代理)将转发从AppUrl到启动URL的所有http请求。
If you remove the Launch URL kestrel has no port to listen to, and will throw an error on startup, or fallback to port 5000.
如果删除启动URL,则无法侦听端口,并且在启动时会抛出错误,或者回退到端口5000。