Loading data/nginx.conf +12 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ log_format clear '[$time_iso8601] $remote_addr ' ' referrer=$http_referer;' ' user-agent=$http_user_agent'; fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=ERR:1m inactive=1d; fastcgi_cache_key "$scheme$request_method$host$request_uri"; server { listen 80; server_name _; Loading @@ -25,11 +28,20 @@ server { # Add Cache-Control headers for static files, removed in *.php location add_header Cache-Control "public, max-age=7776000, stale-while-revalidate=86400, stale-if-error=604800"; error_page 404 /errors/404; error_page 502 /errors/502.html; location /errors { alias /app/html; internal; location /errors/404 { include fastcgi_params; fastcgi_pass upstream:9000; fastcgi_param SCRIPT_FILENAME /app/index.php; fastcgi_cache ERR; fastcgi_cache_valid 404 1d; } } location /index.php { Loading Loading
data/nginx.conf +12 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ log_format clear '[$time_iso8601] $remote_addr ' ' referrer=$http_referer;' ' user-agent=$http_user_agent'; fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=ERR:1m inactive=1d; fastcgi_cache_key "$scheme$request_method$host$request_uri"; server { listen 80; server_name _; Loading @@ -25,11 +28,20 @@ server { # Add Cache-Control headers for static files, removed in *.php location add_header Cache-Control "public, max-age=7776000, stale-while-revalidate=86400, stale-if-error=604800"; error_page 404 /errors/404; error_page 502 /errors/502.html; location /errors { alias /app/html; internal; location /errors/404 { include fastcgi_params; fastcgi_pass upstream:9000; fastcgi_param SCRIPT_FILENAME /app/index.php; fastcgi_cache ERR; fastcgi_cache_valid 404 1d; } } location /index.php { Loading