Contents

NGINX Cheat Sheet

Contents

Some quick NGINX tips and tricks

Simple HTTP vhost:

Useful for setting up a quick and simple website. Also useful for creating a cert if you have another config you want to use, but need the cert first.

server {
        listen 80;

        root /var/www/your_domain/html;
        index index.html index.htm index.nginx-debian.html;

        server_name your_domain;

        location / {
                try_files $uri $uri/ =404;
        }
}