mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
FreeBSD
clients
demo
misc
patches
lua-5.1.4-makefile_install_fix.patch
lua-5.1.5-disable_lua50_compat.patch
lua-5.1.5-makefile_install_fix.patch
lua_cjson-1.0.2-array_detection_fix.patch
luajit-2.0.0-2ad9834d.patch
nginx-0.8.54-allow_request_body_updating.patch
nginx-0.8.54-named_location_clear_mods_ctx.patch
nginx-0.8.54-no_Werror.patch
nginx-0.8.54-no_error_pages.patch
nginx-0.8.54-redirect_memcpy_overlap.patch
nginx-0.8.54-request_body_in_single_buf.patch
nginx-0.8.54-request_body_preread_fix.patch
nginx-0.8.54-server_header.patch
nginx-0.8.54-subrequest_loop.patch
nginx-0.8.54-variable_header_ignore_no_hash.patch
nginx-1.0.10-allow_request_body_updating.patch
nginx-1.0.10-epoll_check_stale_wev.patch
nginx-1.0.10-gzip_empty_flush_buf.patch
nginx-1.0.10-log_escape_non_ascii.patch
nginx-1.0.10-named_location_clear_mods_ctx.patch
nginx-1.0.10-no_Werror.patch
nginx-1.0.10-no_error_pages.patch
nginx-1.0.10-no_pool.patch
nginx-1.0.10-request_body_in_single_buf.patch
nginx-1.0.10-request_body_preread_fix.patch
nginx-1.0.10-server_header.patch
nginx-1.0.10-subrequest_loop.patch
nginx-1.0.10-variable_header_ignore_no_hash.patch
nginx-1.0.11-allow_request_body_updating.patch
nginx-1.0.11-epoll_check_stale_wev.patch
nginx-1.0.11-gzip_empty_flush_buf.patch
nginx-1.0.11-log_escape_non_ascii.patch
nginx-1.0.11-max_subrequests.patch
nginx-1.0.11-named_location_clear_mods_ctx.patch
nginx-1.0.11-no_Werror.patch
nginx-1.0.11-no_error_pages.patch
nginx-1.0.11-no_pool.patch
nginx-1.0.11-null_character_fixes.patch
nginx-1.0.11-request_body_in_single_buf.patch
nginx-1.0.11-request_body_preread_fix.patch
nginx-1.0.11-server_header.patch
nginx-1.0.11-subrequest_loop.patch
nginx-1.0.11-upstream_pipelining.patch
nginx-1.0.11-variable_header_ignore_no_hash.patch
nginx-1.0.12-allow_request_body_updating.patch
nginx-1.0.12-epoll_check_stale_wev.patch
nginx-1.0.12-gzip_empty_flush_buf.patch
nginx-1.0.12-log_escape_non_ascii.patch
nginx-1.0.12-max_subrequests.patch
nginx-1.0.12-named_location_clear_mods_ctx.patch
nginx-1.0.12-no_Werror.patch
nginx-1.0.12-no_error_pages.patch
nginx-1.0.12-no_pool.patch
nginx-1.0.12-request_body_in_single_buf.patch
nginx-1.0.12-request_body_preread_fix.patch
nginx-1.0.12-server_header.patch
nginx-1.0.12-subrequest_loop.patch
nginx-1.0.12-variable_header_ignore_no_hash.patch
nginx-1.0.14-allow_request_body_updating.patch
nginx-1.0.14-epoll_check_stale_wev.patch
nginx-1.0.14-gzip_empty_flush_buf.patch
nginx-1.0.14-log_escape_non_ascii.patch
nginx-1.0.14-max_subrequests.patch
nginx-1.0.14-named_location_clear_mods_ctx.patch
nginx-1.0.14-no_Werror.patch
nginx-1.0.14-no_error_pages.patch
nginx-1.0.14-no_pool.patch
nginx-1.0.14-null_character_fixes.patch
nginx-1.0.14-request_body_in_single_buf.patch
nginx-1.0.14-request_body_preread_fix.patch
nginx-1.0.14-server_header.patch
nginx-1.0.14-subrequest_loop.patch
nginx-1.0.14-upstream_pipelining.patch
nginx-1.0.14-variable_header_ignore_no_hash.patch
nginx-1.0.15-add_core_vars_polluting_globals.patch
nginx-1.0.15-allow_request_body_updating.patch
nginx-1.0.15-filter_finalize_hang.patch
nginx-1.0.15-gzip_empty_flush_buf.patch
nginx-1.0.15-log_escape_non_ascii.patch
nginx-1.0.15-max_subrequests.patch
nginx-1.0.15-named_location_clear_mods_ctx.patch
nginx-1.0.15-no_Werror.patch
nginx-1.0.15-no_error_pages.patch
nginx-1.0.15-no_pool.patch
nginx-1.0.15-null_character_fixes.patch
nginx-1.0.15-poll_del_event_at_exit.patch
nginx-1.0.15-request_body_in_single_buf.patch
nginx-1.0.15-request_body_preread_fix.patch
nginx-1.0.15-reset_wev_handler_in_named_locations.patch
nginx-1.0.15-resolver_debug_log_overflow.patch
nginx-1.0.15-server_header.patch
nginx-1.0.15-subrequest_loop.patch
nginx-1.0.15-upstream_pipelining.patch
nginx-1.0.15-variable_header_ignore_no_hash.patch
nginx-1.0.4-gcc46_fixes.patch
nginx-1.0.4-no_Werror.patch
nginx-1.0.4-no_error_pages.patch
nginx-1.0.4-no_pool.patch
nginx-1.0.4-request_body_in_single_buf.patch
nginx-1.0.4-request_body_preread_fix.patch
nginx-1.0.4-server_header.patch
nginx-1.0.4-subrequest_loop.patch
nginx-1.0.5-no_Werror.patch
nginx-1.0.5-no_error_pages.patch
nginx-1.0.5-no_pool.patch
nginx-1.0.5-request_body_in_single_buf.patch
nginx-1.0.5-request_body_preread_fix.patch
nginx-1.0.5-server_header.patch
nginx-1.0.5-subrequest_loop.patch
nginx-1.0.6-gzip_empty_flush_buf.patch
nginx-1.0.6-no_Werror.patch
nginx-1.0.6-no_error_pages.patch
nginx-1.0.6-no_pool.patch
nginx-1.0.6-request_body_in_single_buf.patch
nginx-1.0.6-request_body_preread_fix.patch
nginx-1.0.6-server_header.patch
nginx-1.0.6-subrequest_loop.patch
nginx-1.0.6-variable_header_ignore_no_hash.patch
nginx-1.0.8-allow_request_body_updating.patch
nginx-1.0.8-gzip_empty_flush_buf.patch
nginx-1.0.8-named_location_clear_mods_ctx.patch
nginx-1.0.8-no_Werror.patch
nginx-1.0.8-no_error_pages.patch
nginx-1.0.8-no_pool.patch
nginx-1.0.8-request_body_in_single_buf.patch
nginx-1.0.8-request_body_preread_fix.patch
nginx-1.0.8-server_header.patch
nginx-1.0.8-subrequest_loop.patch
nginx-1.0.8-variable_header_ignore_no_hash.patch
nginx-1.0.9-allow_request_body_updating.patch
nginx-1.0.9-epoll_check_stale_wev.patch
nginx-1.0.9-gzip_empty_flush_buf.patch
nginx-1.0.9-log_escape_non_ascii.patch
nginx-1.0.9-named_location_clear_mods_ctx.patch
nginx-1.0.9-no_Werror.patch
nginx-1.0.9-no_error_pages.patch
nginx-1.0.9-no_pool.patch
nginx-1.0.9-request_body_in_single_buf.patch
nginx-1.0.9-request_body_preread_fix.patch
nginx-1.0.9-server_header.patch
nginx-1.0.9-subrequest_loop.patch
nginx-1.0.9-variable_header_ignore_no_hash.patch
nginx-1.1.15-allow_request_body_updating.patch
nginx-1.1.15-gzip_empty_flush_buf.patch
nginx-1.1.15-log_escape_non_ascii.patch
nginx-1.1.15-named_location_clear_mods_ctx.patch
nginx-1.1.15-no_Werror.patch
nginx-1.1.15-no_error_pages.patch
nginx-1.1.15-no_pool.patch
nginx-1.1.15-server_header.patch
nginx-1.1.15-subrequest_loop.patch
nginx-1.1.2-no_error_pages.patch
nginx-1.1.4-variable_header_ignore_no_hash.patch
nginx-1.1.5-named_location_clear_mods_ctx.patch
nginx-1.2.1-add_core_vars_polluting_globals.patch
nginx-1.2.1-allow_request_body_updating.patch
nginx-1.2.1-dtrace.patch
nginx-1.2.1-location_if_inherits_proxy.patch
nginx-1.2.1-log_escape_non_ascii.patch
nginx-1.2.1-no_Werror.patch
nginx-1.2.1-no_error_pages.patch
nginx-1.2.1-no_pool.patch
nginx-1.2.1-poll_del_event_at_exit.patch
nginx-1.2.1-resolver_debug_log_overflow.patch
nginx-1.2.1-server_header.patch
nginx-1.2.1-upstream_pipelining.patch
nginx-1.2.3-allow_request_body_updating.patch
nginx-1.2.3-channel-uninit-params.patch
nginx-1.2.3-dtrace.patch
nginx-1.2.3-location_if_inherits_proxy.patch
nginx-1.2.3-log_escape_non_ascii.patch
nginx-1.2.3-no_Werror.patch
nginx-1.2.3-no_error_pages.patch
nginx-1.2.3-no_pool.patch
nginx-1.2.3-nonbuffered-upstream-truncation.patch
nginx-1.2.3-server_header.patch
nginx-1.2.3-upstream_pipelining.patch
nginx-1.2.4-allow_request_body_updating.patch
nginx-1.2.4-channel-uninit-params.patch
nginx-1.2.4-dtrace.patch
nginx-1.2.4-location_if_inherits_proxy.patch
nginx-1.2.4-log_escape_non_ascii.patch
nginx-1.2.4-no_Werror.patch
nginx-1.2.4-no_error_pages.patch
nginx-1.2.4-no_pool.patch
nginx-1.2.4-nonbuffered-upstream-truncation.patch
nginx-1.2.4-server_header.patch
nginx-1.2.4-slab_alloc_no_memory_as_info.patch
nginx-1.2.4-upstream_pipelining.patch
nginx-1.2.4-upstream_test_connect_kqueue.patch
nginx-1.2.5-allow_request_body_updating.patch
nginx-1.2.5-channel-uninit-params.patch
nginx-1.2.5-dtrace.patch
nginx-1.2.5-location_if_inherits_proxy.patch
nginx-1.2.5-log_escape_non_ascii.patch
nginx-1.2.5-no_Werror.patch
nginx-1.2.5-no_error_pages.patch
nginx-1.2.5-no_pool.patch
nginx-1.2.5-nonbuffered-upstream-truncation.patch
nginx-1.2.5-server_header.patch
nginx-1.2.5-slab_alloc_no_memory_as_info.patch
nginx-1.2.5-upstream_pipelining.patch
nginx-1.2.5-upstream_test_connect_kqueue.patch
nginx-1.2.6-channel-uninit-params.patch
nginx-1.2.6-dtrace.patch
nginx-1.2.6-location_if_inherits_proxy.patch
nginx-1.2.6-log_escape_non_ascii.patch
nginx-1.2.6-no_Werror.patch
nginx-1.2.6-no_error_pages.patch
nginx-1.2.6-no_pool.patch
nginx-1.2.6-nonbuffered-upstream-truncation.patch
nginx-1.2.6-resolver_wev_handler_segfault_with_poll.patch
nginx-1.2.6-server_header.patch
nginx-1.2.6-slab_alloc_no_memory_as_info.patch
nginx-1.2.6-upstream_pipelining.patch
nginx-1.2.7-channel-uninit-params.patch
nginx-1.2.7-dtrace.patch
nginx-1.2.7-location_if_inherits_proxy.patch
nginx-1.2.7-log_escape_non_ascii.patch
nginx-1.2.7-no_Werror.patch
nginx-1.2.7-no_error_pages.patch
nginx-1.2.7-no_pool.patch
nginx-1.2.7-nonbuffered-upstream-truncation.patch
nginx-1.2.7-run_posted_requests_in_resolver.patch
nginx-1.2.7-server_header.patch
nginx-1.2.7-slab_alloc_no_memory_as_info.patch
nginx-1.2.7-upstream_pipelining.patch
nginx-1.3.0-resolver_debug_log_overflow.patch
nginx-1.3.11-channel-uninit-params.patch
nginx-1.3.11-dtrace.patch
nginx-1.3.11-location_if_inherits_proxy.patch
nginx-1.3.11-log_escape_non_ascii.patch
nginx-1.3.11-no_Werror.patch
nginx-1.3.11-no_error_pages.patch
nginx-1.3.11-no_pool.patch
nginx-1.3.11-nonbuffered-upstream-truncation.patch
nginx-1.3.11-resolver_wev_handler_segfault_with_poll.patch
nginx-1.3.11-server_header.patch
nginx-1.3.11-slab_alloc_no_memory_as_info.patch
nginx-1.3.11-upstream_pipelining.patch
nginx-1.3.11-upstream_test_connect_kqueue.patch
nginx-1.3.4-allow_request_body_updating.patch
nginx-1.3.4-dtrace.patch
nginx-1.3.4-location_if_inherits_proxy.patch
nginx-1.3.4-log_escape_non_ascii.patch
nginx-1.3.4-no_Werror.patch
nginx-1.3.4-no_error_pages.patch
nginx-1.3.4-no_pool.patch
nginx-1.3.4-server_header.patch
nginx-1.3.4-upstream_pipelining.patch
nginx-1.3.6-allow_request_body_updating.patch
nginx-1.3.6-channel-uninit-params.patch
nginx-1.3.6-dtrace.patch
nginx-1.3.6-location_if_inherits_proxy.patch
nginx-1.3.6-log_escape_non_ascii.patch
nginx-1.3.6-no_Werror.patch
nginx-1.3.6-no_error_pages.patch
nginx-1.3.6-no_pool.patch
nginx-1.3.6-nonbuffered-upstream-truncation.patch
nginx-1.3.6-server_header.patch
nginx-1.3.6-upstream_pipelining.patch
nginx-1.3.7-allow_request_body_updating.patch
nginx-1.3.7-channel-uninit-params.patch
nginx-1.3.7-dtrace.patch
nginx-1.3.7-location_if_inherits_proxy.patch
nginx-1.3.7-log_escape_non_ascii.patch
nginx-1.3.7-no_Werror.patch
nginx-1.3.7-no_error_pages.patch
nginx-1.3.7-no_pool.patch
nginx-1.3.7-nonbuffered-upstream-truncation.patch
nginx-1.3.7-resolver_wev_handler_segfault_with_poll.patch
nginx-1.3.7-server_header.patch
nginx-1.3.7-slab_alloc_no_memory_as_info.patch
nginx-1.3.7-upstream_pipelining.patch
nginx-1.3.7-upstream_test_connect_kqueue.patch
specs
t
util
.gitignore
Makefile
README
91 lines
2.8 KiB
Diff
91 lines
2.8 KiB
Diff
--- nginx-1.2.6/src/http/ngx_http_core_module.c 2010-12-14 18:38:42.000000000 +0800
|
|
+++ nginx-1.2.6-patched/src/http/ngx_http_core_module.c 2011-01-30 19:24:34.956354518 +0800
|
|
@@ -57,6 +57,8 @@
|
|
void *conf);
|
|
static char *ngx_http_core_error_page(ngx_conf_t *cf, ngx_command_t *cmd,
|
|
void *conf);
|
|
+static char *ngx_http_core_no_error_pages(ngx_conf_t *cf, ngx_command_t *cmd,
|
|
+ void *conf);
|
|
static char *ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd,
|
|
void *conf);
|
|
static char *ngx_http_core_open_file_cache(ngx_conf_t *cf, ngx_command_t *cmd,
|
|
@@ -614,6 +616,14 @@
|
|
0,
|
|
NULL },
|
|
|
|
+ { ngx_string("no_error_pages"),
|
|
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
|
|
+ |NGX_CONF_NOARGS,
|
|
+ ngx_http_core_no_error_pages,
|
|
+ NGX_HTTP_LOC_CONF_OFFSET,
|
|
+ 0,
|
|
+ NULL },
|
|
+
|
|
{ ngx_string("try_files"),
|
|
NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_2MORE,
|
|
ngx_http_core_try_files,
|
|
@@ -3052,7 +3062,6 @@
|
|
* clcf->types = NULL;
|
|
* clcf->default_type = { 0, NULL };
|
|
* clcf->error_log = NULL;
|
|
- * clcf->error_pages = NULL;
|
|
* clcf->try_files = NULL;
|
|
* clcf->client_body_path = NULL;
|
|
* clcf->regex = NULL;
|
|
@@ -3062,6 +3071,7 @@
|
|
* clcf->gzip_proxied = 0;
|
|
*/
|
|
|
|
+ clcf->error_pages = NGX_CONF_UNSET_PTR;
|
|
clcf->client_max_body_size = NGX_CONF_UNSET;
|
|
clcf->client_body_buffer_size = NGX_CONF_UNSET_SIZE;
|
|
clcf->client_body_timeout = NGX_CONF_UNSET_MSEC;
|
|
@@ -3250,9 +3260,7 @@
|
|
}
|
|
}
|
|
|
|
- if (conf->error_pages == NULL && prev->error_pages) {
|
|
- conf->error_pages = prev->error_pages;
|
|
- }
|
|
+ ngx_conf_merge_ptr_value(conf->error_pages, prev->error_pages, NULL);
|
|
|
|
ngx_conf_merge_str_value(conf->default_type,
|
|
prev->default_type, "text/plain");
|
|
@@ -3988,6 +3996,10 @@
|
|
ngx_http_compile_complex_value_t ccv;
|
|
|
|
if (clcf->error_pages == NULL) {
|
|
+ return "conflicts with \"no_error_pages\"";
|
|
+ }
|
|
+
|
|
+ if (clcf->error_pages == NGX_CONF_UNSET_PTR) {
|
|
clcf->error_pages = ngx_array_create(cf->pool, 4,
|
|
sizeof(ngx_http_err_page_t));
|
|
if (clcf->error_pages == NULL) {
|
|
@@ -4095,6 +4107,25 @@
|
|
|
|
|
|
static char *
|
|
+ngx_http_core_no_error_pages(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|
+{
|
|
+ ngx_http_core_loc_conf_t *clcf = conf;
|
|
+
|
|
+ if (clcf->error_pages == NULL) {
|
|
+ return "is duplicate";
|
|
+ }
|
|
+
|
|
+ if (clcf->error_pages != NGX_CONF_UNSET_PTR) {
|
|
+ return "conflicts with \"error_page\"";
|
|
+ }
|
|
+
|
|
+ clcf->error_pages = NULL;
|
|
+
|
|
+ return NGX_CONF_OK;
|
|
+}
|
|
+
|
|
+
|
|
+static char *
|
|
ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|
{
|
|
ngx_http_core_loc_conf_t *clcf = conf;
|