diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-01-10 06:09:20 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-01-10 06:09:20 +0000 |
| commit | b2620634c5c395f227a98837f46e1eaf6b86963c (patch) | |
| tree | d9333eef73b09e7351cdc8705df984786a5544b3 /src/http/ngx_http_special_response.c | |
| parent | 4e9393a0548d783cd6f50d1fcd003c85a24b2b16 (diff) | |
| download | nginx-b2620634c5c395f227a98837f46e1eaf6b86963c.tar.gz nginx-b2620634c5c395f227a98837f46e1eaf6b86963c.tar.bz2 | |
nginx-0.0.1-2003-01-10-09:09:20 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
| -rw-r--r-- | src/http/ngx_http_special_response.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 92f938c97..b458f5973 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -19,6 +19,13 @@ static char error_400_page[] = "<center><h1>400 Bad Request</h1></center>" CRLF ; +static char error_403_page[] = +"<html>" CRLF +"<head><title>403 Forbidden</title></head>" CRLF +"<body bgcolor=\"white\">" CRLF +"<center><h1>403 Forbidden</h1></center>" CRLF +; + static char error_404_page[] = "<html>" CRLF "<head><title>404 Not Found</title></head>" CRLF @@ -36,7 +43,7 @@ static ngx_str_t error_pages[] = { { sizeof(error_400_page) - 1, error_400_page }, { 0, NULL}, /* 401 */ { 0, NULL}, /* 402 */ - { 0, NULL}, /* 403 */ + { sizeof(error_403_page) - 1, error_403_page }, { sizeof(error_404_page) - 1, error_404_page }, { 0, NULL} /* 500 */ |
