default.conf 849 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
server {
    listen              8080;
    server_name         localhost;
    absolute_redirect   off;
    root                /usr/share/nginx/html;
    index               index.html;

    location / {
        expires         5m;
        add_header      Cache-Control "public";
Nitin Jadhav's avatar
Nitin Jadhav committed
11
        try_files       $uri.html $uri/ $uri =404;
12 13
    }

14 15
    error_page 404 /404/index.html;
    location = /404/index.html {
16
      root /usr/share/nginx/html/jobs/info/error-pages;
17 18 19 20 21
      internal;
    }

    error_page 403 /403/index.html;
    location = /403/index.html {
22
      root /usr/share/nginx/html/jobs/info/error-pages;
23 24
      internal;
    }
25 26 27

    # redirect server error pages to the static page /50x.html
    #
28 29
    error_page 500 502 503 504  /500/index.html;
    location = /500/index.html {
30
      root /usr/share/nginx/html/jobs/info/error-pages;
31 32
    }
}