summaryrefslogtreecommitdiffhomepage
path: root/conf/nginx.conf
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-06-28 16:00:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-06-28 16:00:26 +0000
commitef809b86c36a9584a15df6caac2eb727ceacc10d (patch)
tree80dc756ea197b259b159fb9a47b09df1a1eae7f1 /conf/nginx.conf
parentf115ebe9c3d57c0b271b03ed931ff42cdef37eb2 (diff)
downloadnginx-release-0.3.50.tar.gz
nginx-release-0.3.50.tar.bz2
nginx-0.3.50-RELEASE importrelease-0.3.50
*) Change: the "proxy_redirect_errors" and "fastcgi_redirect_errors" directives was renamed to the "proxy_intercept_errors" and "fastcgi_intercept_errors" directives. *) Feature: the ngx_http_charset_module supports the recoding from the single byte encodings to the UTF-8 encoding and back. *) Feature: the "X-Accel-Charset" response header line is supported in proxy and FastCGI mode. *) Bugfix: the "\" escape symbol in the "\"" and "\'" pairs in the SSI command was removed only if the command also has the "$" symbol. *) Bugfix: the "<!--" string might be added on some conditions in the SSI after inclusion. *) Bugfix: if the "Content-Length: 0" header line was in response, then in nonbuffered proxying mode the client connection was not closed.
Diffstat (limited to 'conf/nginx.conf')
-rw-r--r--conf/nginx.conf14
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;
}