diff --git a/nginx.conf b/nginx.conf index 1cdfcabf7..72fede1ad 100644 --- a/nginx.conf +++ b/nginx.conf @@ -57,18 +57,18 @@ server { add_header 'Cache-Control' "public, max-age=3153600"; } - location /robots.txt { + location =/robots.txt { alias /rDrama/files/assets/robots.txt; add_header 'Cache-Control' "public, max-age=3153600"; } - location /icon.webp { + location =/icon.webp { alias /rDrama/files/assets/images/rDrama/icon.webp; add_header 'Cache-Control' "public, max-age=3153600"; } - error_page 502 = /error_page/502.html; - location /error_page/ { - alias /rDrama/files/templates/errors/rDrama/; + error_page 502 = /502.html; + location =/502.html { + alias /rDrama/files/templates/errors/rDrama/502.html; add_header Cache-Control "no-store"; } }