diff --git a/astro/nginx.conf b/astro/nginx.conf index fa537ed..fb75271 100644 --- a/astro/nginx.conf +++ b/astro/nginx.conf @@ -23,19 +23,13 @@ http { internal; } - location ~* \.(jpg|jpeg|png|gif|ico|css|html)$ { - expires 30d; + location ~* \.(jpg|jpeg|png|gif|ico|css|js|htm|html)$ { + root /usr/share/nginx/html; + expires 30d; add_header Pragma public; add_header Cache-Control "public"; } - location ~* \.js$ { - expires 30d; - add_header Pragma public; - add_header Cache-Control "public"; - add_header Content-Type application/javascript; - } - - error_page 404 /404.html; + error_page 404 /error_page.html; } } \ No newline at end of file