简体   繁体   中英

How to deploy dotnet core application on Ubuntu server with Nginx server?

I have a dotnet core application built on dotnet core 3.1 and when I tried to deploy the same in ubuntu 18.04 server by following the steps given in this doc but not able to access the app on port 80 (accessing through public IP)

Here is the Nginx updated configuration

在此处输入图片说明

and dotnet application is running with port 5000 and 5001 (for now I didn't configure service to the same)

在此处输入图片说明

Getting the following error when accessing through the browsers ( public IP)

在此处输入图片说明

I'm missing any configurations?

The problem was IISexpress port access issue.

By default, the IISexpress does not allow the external network to access the port and this access needs an explicit configuration.

If you are facing the same problem, you can find the code snippet and other details here.

Accessing IISExpress for an asp.net core API via IP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM