diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 40a878bcee2..e9ece31ea0e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,17 +1,13 @@ server { - listen 80; + root /usr/share/nginx/html; - location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; + location = /index.html { + expires 6h; } - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; + location / { + expires 7d; + try_files $uri $uri/ /index.html; } - }