DEV Community

Bharat Dwarkani
Bharat Dwarkani

Posted on • Edited on • Originally published at Medium

2 1

Checklist for Hosting ASP.NET Core Site in Linux VM

I have listed items with references which will help you in deploying your ASP.NET Core site from scratch in a fresh VM for a production environment.

  • Install and Setup Supervisor - It is a tool which will help in the auto-start of your site on server restart, otherwise, on server restart, you might need to manually start site.
  • Install and Setup Nginx - For Reverse Proxying to your .NET app
  • Install DotNet Core  https://dotnet.microsoft.com/download/linux-package-manager/ubuntu16-04/sdk-current
  • Get a domain - Can get from GoDaddy or any other vendor.
  • Setup and Install Lets Encrypt - To Obtain Free SSL Certification or if you have own certificate purchased you can also use it.
  • Enable Firewall to allow port 80, 443 - or any other port based on your requirement.
  • Enable https redirect in your Ngnix Configuration
  • After Hosting ensure you have enabled basic Security Headers for the site - Can test Using Security Headers site- https://securityheaders.com/
  • Can test your site for SEO if your site needs it - https://sharetechlinks.com/post/detail/101/free-seo-checker

References

https://jerrygamblin.com/2016/10/19/ubuntu-remote-desktop-on-digital-ocean/

https://medium.com/@bharatdwarkani/5-easy-steps-to-install-putty-and-connecting-to-linux-ubuntu-server-in-windows-adcdc9d755dc

https://www.digitalocean.com/community/tutorials/how-to-secure-mysql-and-mariadb-databases-in-a-linux-vps

https://www.configserverfirewall.com/ubuntu-linux/enable-mysql-remote-access-ubuntu/

Conclusion
The above-mentioned checklist is more than enough to host your ASP.NET Core site in a fresh Linux VM starting from Scratch.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay