Deployment of .Net Core API on Nginx in RedHat environment

shobhit gupta 1 Reputation point
2022-08-02T15:23:40.293+00:00

Hello Team,

For one of our Application requirement, we are looking to deploy .Net Core API on Nginx in RHEL environment.
However, not able to get the steps to achieve this.

Can you please share us the required documentation link which can help us to achieve the same?

Thanks,
Shobhit

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,041 Reputation points
    2022-08-02T16:27:54.543+00:00

    see docs:

    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-6.0

    basically you configure systemd to start you asp.net core app. then you configure ngnix to reverse proxy to the service.

    0 comments No comments

  2. shobhit gupta 1 Reputation point
    2022-08-03T05:33:25.343+00:00

    Thanks Bruce for sharing the document.

    However, this looks to be for Ubuntu OS.
    Will this be applicable for RHEL OS as well?

    0 comments No comments

  3. Bruce (SqlWork.com) 55,041 Reputation points
    2022-08-03T15:40:39.833+00:00

    the install of nginx will be different as red-hat uses yum rather than apt. see ngnix installation docs. the service instructions are for systemd and should be the same. check the man pages to verify the folder location. if nano is not installed, use vim, or whichever editor you prefer.

    0 comments No comments