diff options
Diffstat (limited to 'conf/nginx.conf')
| -rw-r--r-- | conf/nginx.conf | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf index 2f5785a02..3487318f4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -20,7 +20,7 @@ http { #log_format main '$remote_addr - $remote_user [$time_local] $status ' # '"$request" $body_bytes_sent "$http_referer" ' - # '"$http_user_agent" "http_x_forwarded_for"'; + # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; @@ -46,6 +46,15 @@ http { index index.html index.htm; } + #error_page 404 /404.html; + + # redirect server error pages to the static page /50x.html + # + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root html; + } + # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { @@ -67,9 +76,6 @@ http { #location ~ /\.ht { # deny all; #} - - #error_page 404 /404.html; - #error_page 500 502 503 504 /50x.html; } |
