Deepak
Deepak

Reputation: 1584

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

enter image description here

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

enter image description here

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

enter image description here

I'm missing any configurations?

Upvotes: 4

Views: 464

Answers (1)

Deepak
Deepak

Reputation: 1584

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

Upvotes: 1

Related Questions