Hosting ASP.NET Core on Linux using Nginx
ASP.NET Core is a fully open source, high-performance, and cross-platform framework. ASP.NET Core runs anywhere you need it to (Windows, Mac, Linux). In this post, we will see how to host ASP.NET core application on Linux(CentOS 7) with Nginx as the reverse proxy.
Redirect non-www to www URL in Nginx
The best way to redirect non-www to www URL in Nginx is to define a separate server for example.org and redirect permanently to www.example.org