aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nginx/HOWTO_new_site.txt
blob: ef9ee3736065f7f9b1a9dc3eca74cbc7d0fd10f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

For a static website:

    server {
        listen 80;
        listen [::]:80;
        server_name <example.com>;

        root /srv/http/<example.com>/www;
        index index.html;

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

For a reverse proxied website:

    XXX: TODO