question

shobhitgupta-4208 avatar image
0 Votes"
shobhitgupta-4208 asked Bruce-SqlWork answered

Deployment of .Net Core API on Nginx in RedHat environment

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

dotnet-aspnet-core-webapidotnet-ad
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered Bruce-SqlWork edited

see docs:

https://docs.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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

shobhitgupta-4208 avatar image
0 Votes"
shobhitgupta-4208 answered

Thanks Bruce for sharing the document.

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

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.





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.