summaryrefslogtreecommitdiff
path: root/config/nginx
blob: 07b5ecec02623ef110f3a2d336f082675a85aea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
server {
    root /usr/share/nginx/www;
    index index.html index.htm;

    # Make site accessible from http://localhost/
    server_name localhost;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to index.html
        try_files $uri $uri/ /index.html;

        # Optional basic auth restriction
        # auth_basic "Restricted";
        # auth_basic_user_file /etc/nginx/.htpasswd;
    }
}