If you only need to host a static site or a single-page javascript app such as AngularJS-app, then the following Nginx-configuration is for you.

The following is a very basic configuration, a starting point. You can add more configuration options based on your needs. I won’t go to those options in this post.

nginx server logo