diff --git a/astro/nginx.conf b/astro/nginx.conf index e057de4..b3536fb 100644 --- a/astro/nginx.conf +++ b/astro/nginx.conf @@ -19,10 +19,17 @@ http { try_files $uri $uri/ =404; } + location /error_page.html { + internal; + } + 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"; } + + error_page 404 /error_page.html; } } \ No newline at end of file