passenger 4.0.59 → 4.0.60
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- checksums.yaml +8 -8
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/CHANGELOG +15 -0
- data/bin/passenger-install-apache2-module +2 -1
- data/bin/passenger-install-nginx-module +8 -2
- data/ext/apache2/Hooks.cpp +21 -2
- data/ext/apache2/MergeDirConfig.cpp +40 -40
- data/ext/common/ApplicationPool2/Group.h +14 -10
- data/ext/common/ApplicationPool2/Implementation.cpp +13 -7
- data/ext/common/ApplicationPool2/SmartSpawner.h +4 -1
- data/ext/common/Constants.h +1 -1
- data/ext/nginx/ContentHandler.c +17 -1
- data/lib/phusion_passenger.rb +4 -5
- data/lib/phusion_passenger/platform_info/depcheck_specs/libs.rb +4 -3
- data/lib/phusion_passenger/platform_info/openssl.rb +61 -0
- data/lib/phusion_passenger/standalone/runtime_installer.rb +27 -22
- data/packaging/debian/LICENSE.md +19 -0
- data/packaging/debian/README.md +320 -0
- data/packaging/debian/Vagrantfile +25 -0
- data/packaging/debian/build +210 -0
- data/packaging/debian/debian_specs/nginx/changelog +1989 -0
- data/packaging/debian/debian_specs/nginx/compat.erb +5 -0
- data/packaging/debian/debian_specs/nginx/conf/fastcgi.conf +25 -0
- data/packaging/debian/debian_specs/nginx/conf/fastcgi_params +24 -0
- data/packaging/debian/debian_specs/nginx/conf/koi-utf +109 -0
- data/packaging/debian/debian_specs/nginx/conf/koi-win +103 -0
- data/packaging/debian/debian_specs/nginx/conf/mime.types +89 -0
- data/packaging/debian/debian_specs/nginx/conf/nginx.conf.erb +97 -0
- data/packaging/debian/debian_specs/nginx/conf/proxy_params +4 -0
- data/packaging/debian/debian_specs/nginx/conf/scgi_params +16 -0
- data/packaging/debian/debian_specs/nginx/conf/sites-available/default.erb +93 -0
- data/packaging/debian/debian_specs/nginx/conf/snippets/fastcgi-php.conf +13 -0
- data/packaging/debian/debian_specs/nginx/conf/snippets/snakeoil.conf +5 -0
- data/packaging/debian/debian_specs/nginx/conf/uwsgi_params +16 -0
- data/packaging/debian/debian_specs/nginx/conf/win-utf +125 -0
- data/packaging/debian/debian_specs/nginx/control.erb +226 -0
- data/packaging/debian/debian_specs/nginx/copyright +196 -0
- data/packaging/debian/debian_specs/nginx/debian-full.lintian-overrides +1 -0
- data/packaging/debian/debian_specs/nginx/gbp.conf +2 -0
- data/packaging/debian/debian_specs/nginx/help/docs/fcgiwrap +14 -0
- data/packaging/debian/debian_specs/nginx/help/docs/php +119 -0
- data/packaging/debian/debian_specs/nginx/help/docs/support-irc +28 -0
- data/packaging/debian/debian_specs/nginx/help/docs/upstream +51 -0
- data/packaging/debian/debian_specs/nginx/help/examples/drupal +114 -0
- data/packaging/debian/debian_specs/nginx/help/examples/http +59 -0
- data/packaging/debian/debian_specs/nginx/help/examples/mail +30 -0
- data/packaging/debian/debian_specs/nginx/help/examples/mailman +59 -0
- data/packaging/debian/debian_specs/nginx/help/examples/nginx.conf +34 -0
- data/packaging/debian/debian_specs/nginx/help/examples/nginx_modsite +162 -0
- data/packaging/debian/debian_specs/nginx/help/examples/virtual_hosts +155 -0
- data/packaging/debian/debian_specs/nginx/help/examples/wordpress +74 -0
- data/packaging/debian/debian_specs/nginx/helpers.rb +41 -0
- data/packaging/debian/debian_specs/nginx/index-debian.html.in +32 -0
- data/packaging/debian/debian_specs/nginx/index-ubuntu.html.in +32 -0
- data/packaging/debian/debian_specs/nginx/index.html.erb +10 -0
- data/packaging/debian/debian_specs/nginx/modules/README.Modules-versions +65 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/README.markdown +510 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/config +5 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/doc/HttpHeadersMoreModule.wiki +395 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ddebug.h +119 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c +348 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_filter_module.h +80 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.c +826 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.h +26 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_out.c +716 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_out.h +26 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_util.c +380 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_util.h +52 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/util/build.sh +32 -0
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/valgrind.suppress +215 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/ChangeLog +35 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/LICENSE +25 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/README.md +93 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/config +4 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/ngx_http_auth_pam_module.c +462 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/CHANGES +66 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/LICENSE +26 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/README.md +171 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/TODO.md +7 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/config +21 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/ngx_cache_purge_module.c +1803 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-dav-ext-module/README +29 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-dav-ext-module/config +9 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-dav-ext-module/ngx_http_dav_ext_module.c +824 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/README +139 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/README_AUTO_LIB +395 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/TODO +1 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/actions/array +10 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/actions/palloc +8 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/build +597 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/action_replacements +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/action_types +12 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/conf_args +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/conf_locs +25 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/conf_macros +35 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/contexts +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/header_files +3 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/headers +4 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/module_dependencies +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/modules_optional +15 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/prefixes +2 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/array.h +7 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/conf_cmd_basic.h +43 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/conf_merge.h +78 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/palloc.h +6 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/text/autogen +12 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/config +49 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/core/action_macros +63 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/core/conf_cmds +62 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/modules/set_var +124 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/patches/more_logging_info +48 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/upstream/list +45 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/examples/README +12 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/examples/http/set_var/config +4 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/examples/http/set_var/ngx_http_set_var_examples_module.c +136 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/ngx_auto_lib_core +797 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/notes/CHANGES +17 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/notes/LICENSE +24 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_array.h +113 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_conf_cmd_basic.h +2203 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_conf_cmd_extra.h +5423 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_conf_merge.h +227 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_config.c +72 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_config.h +98 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_includes.h +66 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_palloc.h +112 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/patches/auto_config +16 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/patches/expose_rewrite_functions +291 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/patches/rewrite_phase_handler +19 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/hash/md5.h +117 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/hash/murmurhash2.c +77 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/hash/sha.h +200 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk.c +155 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk.h +58 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_buf.c +43 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_buf.h +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_path.c +129 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_path.h +30 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_value.c +192 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_value.h +21 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_conf_file.c +396 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_conf_file.h +44 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_debug.c +72 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_debug.h +171 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_encoding.c +57 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_encoding.h +12 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_hash.c +82 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_hash.h +45 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_http.c +138 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_http.h +3 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_http_headers.h +35 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_log.c +3 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_log.h +165 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_parse.h +67 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_path.c +583 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_path.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_process.c +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_process.h +12 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_regex.c +215 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_regex.h +7 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_rewrite.c +103 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_rewrite.h +26 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_set_var.c +602 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_set_var.h +44 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_string.c +434 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_string.h +37 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_string_util.h +14 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_upstream_list.c +205 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_upstream_list.h +27 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_uri.c +45 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_uri.h +6 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/LICENSE +25 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/README.markdown +1850 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/config +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/doc/HttpEchoModule.wiki +1558 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ddebug.h +109 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_echo.c +344 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_echo.h +25 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_filter.c +282 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_filter.h +15 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_foreach.c +183 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_foreach.h +16 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_handler.c +429 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_handler.h +18 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_location.c +178 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_location.h +13 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_module.c +667 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_module.h +137 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_request_info.c +452 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_request_info.h +31 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_sleep.c +208 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_sleep.h +16 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_subrequest.c +788 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_subrequest.h +19 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_timer.c +96 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_timer.h +13 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_util.c +298 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_util.h +58 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_var.c +110 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_var.h +9 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/util/build.sh +45 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/util/releng +8 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/util/wiki2pod.pl +131 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/valgrind.suppress +38 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/LICENCE +24 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/README +206 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/changelog.txt +54 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/config +26 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/protocol.txt +191 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_defs.c +59 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_defs.h +73 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_module.c +783 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_module.h +31 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_module_setup.c +361 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_types.h +120 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/memory/store.c +1180 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/memory/store.h +1 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_http_push_module_ipc.c +146 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_http_push_module_ipc.h +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_http_push_store.h +51 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_rwlock.c +178 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_rwlock.h +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/rbtree_util.c +246 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/rbtree_util.h +9 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/Changes +51 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/README.markdown +6954 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/config +363 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/doc/HttpLuaModule.wiki +5898 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/dtrace/ngx_lua_provider.d +61 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/misc/recv-until-pm/Makefile +3 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/misc/recv-until-pm/lib/RecvUntil.pm +138 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/misc/recv-until-pm/t/sanity.t +140 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/api/ngx_http_lua_api.h +52 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ddebug.h +82 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_accessby.c +377 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_accessby.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_api.c +77 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_args.c +537 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_args.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_bodyfilterby.c +632 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_bodyfilterby.h +31 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_cache.c +296 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_cache.h +24 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_capturefilter.c +175 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_capturefilter.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_clfactory.c +887 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_clfactory.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_common.h +478 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_config.c +67 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_config.h +19 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_consts.c +148 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_consts.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_contentby.c +369 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_contentby.h +26 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_control.c +483 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_control.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_coroutine.c +379 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_coroutine.h +23 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ctx.c +216 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ctx.h +23 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_directive.c +1081 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_directive.h +56 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_exception.c +58 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_exception.h +33 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headerfilterby.c +302 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headerfilterby.h +29 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers.c +1370 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_in.c +782 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_in.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_out.c +625 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_out.h +23 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initby.c +42 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initby.h +23 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initworkerby.c +320 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initworkerby.h +25 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_log.c +300 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_log.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_logby.c +227 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_logby.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_misc.c +252 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_misc.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_module.c +924 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ndk.c +184 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ndk.h +21 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_output.c +794 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_output.h +28 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_pcrefix.c +106 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_pcrefix.h +23 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_phase.c +94 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_phase.h +13 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_probe.h +85 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_regex.c +2468 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_regex.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_body.c +1169 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_body.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_method.c +252 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_method.h +19 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_rewriteby.c +351 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_rewriteby.h +22 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_script.c +538 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_script.h +86 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_setby.c +216 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_setby.h +15 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_shdict.c +1844 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_shdict.h +52 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_sleep.c +191 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_sleep.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_tcp.c +5314 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_tcp.h +156 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_udp.c +1624 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_udp.h +56 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_string.c +704 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_string.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_subrequest.c +1741 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_subrequest.h +46 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_time.c +278 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_time.h +21 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_timer.c +661 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_timer.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uri.c +110 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uri.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uthread.c +283 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uthread.h +36 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_util.c +3972 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_util.h +423 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_variable.c +499 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_variable.h +20 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_worker.c +64 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_worker.h +17 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/tapset/ngx_lua.stp +5 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/build.sh +39 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/build2.sh +55 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/fix-comments +27 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/gdbinit +415 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/ngx-links +62 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/reindex +64 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/releng +8 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/retab +8 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/revim +102 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/run_test.sh +10 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/update-readme.sh +4 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/valgrind.suppress +144 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/CHANGES +107 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/LICENSE +25 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/Makefile +8 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/README +329 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/config +3 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/ngx_http_uploadprogress_module.c +1774 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upstream-fair/README +53 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upstream-fair/config +3 -0
- data/packaging/debian/debian_specs/nginx/modules/nginx-upstream-fair/ngx_http_upstream_fair_module.c +1356 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/CHANGELOG.md +37 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/HACKING.md +24 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/LICENSE +20 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/README.rst +182 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/config +8 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/nginx-0.6-support.patch +23 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/ngx_http_fancyindex_module.c +1305 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/template.awk +52 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/template.h +103 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/template.html +102 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/CHANGES +37 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/README +141 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/config +3 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/doc/README.google_code_home_page.wiki +120 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/doc/README.html +199 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/doc/README.wiki +123 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/ngx_http_subs_filter_module.c +1298 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/README +275 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/AutoInstall.pm +820 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install.pm +470 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/AutoInstall.pm +82 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Base.pm +83 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Can.pm +81 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Fetch.pm +93 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Include.pm +34 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Makefile.pm +415 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Metadata.pm +716 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/TestBase.pm +29 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Win32.pm +64 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/WriteAll.pm +63 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Spiffy.pm +539 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Base.pm +682 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Base/Filter.pm +341 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Builder.pm +1413 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Builder/Module.pm +81 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/More.pm +735 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx.pm +315 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx/LWP.pm +524 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx/Socket.pm +1749 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx/Util.pm +874 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs.t +136 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_capture.t +32 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_fix_string.t +32 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_regex.t +108 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_types.t +59 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/test.sh +5 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/util/update-readme.sh +7 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/util/wiki2google_code_homepage.pl +29 -0
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/util/wiki2pod.pl +129 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.NEWS +135 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.README.Debian +45 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.dirs.erb +32 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.install +3 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.lintian-overrides +2 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.manpages +1 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.default +10 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.init.erb +214 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.logrotate +18 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.service.erb +37 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.postinst.erb +66 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.postrm.erb +46 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.preinst +47 -0
- data/packaging/debian/debian_specs/nginx/nginx-common.prerm.erb +28 -0
- data/packaging/debian/debian_specs/nginx/nginx-doc.docs +2 -0
- data/packaging/debian/debian_specs/nginx/nginx-doc.examples +1 -0
- data/packaging/debian/debian_specs/nginx/nginx-extras.install.erb +17 -0
- data/packaging/debian/debian_specs/nginx/nginx-extras.lintian-overrides +1 -0
- data/packaging/debian/debian_specs/nginx/nginx-extras.postinst.erb +44 -0
- data/packaging/debian/debian_specs/nginx/nginx-extras.prerm +22 -0
- data/packaging/debian/debian_specs/nginx/nginx.1 +47 -0
- data/packaging/debian/debian_specs/nginx/patches/perl-use-dpkg-buildflags.patch +23 -0
- data/packaging/debian/debian_specs/nginx/patches/series +1 -0
- data/packaging/debian/debian_specs/nginx/rules.erb +185 -0
- data/packaging/debian/debian_specs/nginx/source/format +1 -0
- data/packaging/debian/debian_specs/nginx/tests/control +4 -0
- data/packaging/debian/debian_specs/nginx/ufw/nginx +14 -0
- data/packaging/debian/debian_specs/nginx/upstream/signing-key.asc +34 -0
- data/packaging/debian/debian_specs/nginx/watch +3 -0
- data/packaging/debian/debian_specs/passenger/README.Debian +12 -0
- data/packaging/debian/debian_specs/passenger/changelog +316 -0
- data/packaging/debian/debian_specs/passenger/compat +1 -0
- data/packaging/debian/debian_specs/passenger/control.erb +123 -0
- data/packaging/debian/debian_specs/passenger/copyright +385 -0
- data/packaging/debian/debian_specs/passenger/helpers.rb +24 -0
- data/packaging/debian/debian_specs/passenger/libapache2-mod-passenger.install +3 -0
- data/packaging/debian/debian_specs/passenger/libapache2-mod-passenger.postinst +36 -0
- data/packaging/debian/debian_specs/passenger/libapache2-mod-passenger.prerm +15 -0
- data/packaging/debian/debian_specs/passenger/locations.ini.erb +14 -0
- data/packaging/debian/debian_specs/passenger/passenger-dev.install.erb +3 -0
- data/packaging/debian/debian_specs/passenger/passenger-doc.install.erb +2 -0
- data/packaging/debian/debian_specs/passenger/passenger.conf +6 -0
- data/packaging/debian/debian_specs/passenger/passenger.docs +4 -0
- data/packaging/debian/debian_specs/passenger/passenger.install.erb +16 -0
- data/packaging/debian/debian_specs/passenger/passenger.load +3 -0
- data/packaging/debian/debian_specs/passenger/passenger.manpages +3 -0
- data/packaging/debian/debian_specs/passenger/passenger_free_ruby.c +29 -0
- data/packaging/debian/debian_specs/passenger/passenger_ruby_utils.c +54 -0
- data/packaging/debian/debian_specs/passenger/passenger_system_ruby.c.erb +37 -0
- data/packaging/debian/debian_specs/passenger/patches/series +0 -0
- data/packaging/debian/debian_specs/passenger/rules.erb +84 -0
- data/packaging/debian/debian_specs/passenger/source/format +1 -0
- data/packaging/debian/debian_specs/passenger_enterprise/README.Debian +12 -0
- data/packaging/debian/debian_specs/passenger_enterprise/changelog +316 -0
- data/packaging/debian/debian_specs/passenger_enterprise/compat +1 -0
- data/packaging/debian/debian_specs/passenger_enterprise/control.erb +123 -0
- data/packaging/debian/debian_specs/passenger_enterprise/copyright +385 -0
- data/packaging/debian/debian_specs/passenger_enterprise/helpers.rb +2 -0
- data/packaging/debian/debian_specs/passenger_enterprise/libapache2-mod-passenger-enterprise.install +3 -0
- data/packaging/debian/debian_specs/passenger_enterprise/libapache2-mod-passenger-enterprise.postinst +36 -0
- data/packaging/debian/debian_specs/passenger_enterprise/libapache2-mod-passenger-enterprise.prerm +15 -0
- data/packaging/debian/debian_specs/passenger_enterprise/locations.ini.erb +14 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise-dev.install.erb +3 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise-doc.install.erb +2 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise.docs +4 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise.install.erb +14 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise.manpages +3 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger.conf +6 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger.load +3 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger_free_ruby.c.erb +1 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger_ruby_utils.c.erb +1 -0
- data/packaging/debian/debian_specs/passenger_enterprise/passenger_system_ruby.c.erb +1 -0
- data/packaging/debian/debian_specs/passenger_enterprise/patches/series +0 -0
- data/packaging/debian/debian_specs/passenger_enterprise/rules.erb +84 -0
- data/packaging/debian/debian_specs/passenger_enterprise/source/format +1 -0
- data/packaging/debian/docker_images/Makefile +38 -0
- data/packaging/debian/docker_images/buildbox/CONTAINER_VERSION.txt +0 -0
- data/packaging/debian/docker_images/buildbox/Dockerfile +3 -0
- data/packaging/debian/docker_images/buildbox/Gemfile +9 -0
- data/packaging/debian/docker_images/buildbox/Gemfile.lock +42 -0
- data/packaging/debian/docker_images/buildbox/install.sh +85 -0
- data/packaging/debian/docker_images/buildbox/pbuilderrc +4 -0
- data/packaging/debian/docker_images/buildbox/sudoers.conf +6 -0
- data/packaging/debian/docker_images/setup-buildbox-docker-image +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-debian-6 +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-debian-7 +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-debian-8 +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-12.04 +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-14.04 +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-15.04 +7 -0
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-15.10 +7 -0
- data/packaging/debian/docker_images/testbox-debian-6/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-debian-6/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-debian-6/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-debian-6/argparse.py +2374 -0
- data/packaging/debian/docker_images/testbox-debian-6/install.sh +78 -0
- data/packaging/debian/docker_images/testbox-debian-7/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-debian-7/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-debian-7/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-debian-7/install.sh +71 -0
- data/packaging/debian/docker_images/testbox-debian-8/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-debian-8/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-debian-8/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-debian-8/install.sh +70 -0
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/install.sh +69 -0
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/install.sh +69 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/install.sh +69 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/Dockerfile +3 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/Gemfile +2 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/Gemfile.lock +23 -0
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/install.sh +69 -0
- data/packaging/debian/internal/build/Rakefile +235 -0
- data/packaging/debian/internal/build/build-passenger-orig-tarball.sh +76 -0
- data/packaging/debian/internal/build/build-source-package.rb +121 -0
- data/packaging/debian/internal/build/download-nginx-orig-tarball.sh +17 -0
- data/packaging/debian/internal/build/rakefile_support.rb +96 -0
- data/packaging/debian/internal/build/setup-environment-essentials.sh +15 -0
- data/packaging/debian/internal/build/setup-environment.sh +29 -0
- data/packaging/debian/internal/lib/distro_info.rb +82 -0
- data/packaging/debian/internal/lib/distro_info.sh +303 -0
- data/packaging/debian/internal/lib/distro_info.sh.erb +65 -0
- data/packaging/debian/internal/lib/library.sh +83 -0
- data/packaging/debian/internal/lib/preprocessor.rb +173 -0
- data/packaging/debian/internal/lib/tracking.rb +95 -0
- data/packaging/debian/internal/lib/tracking_category.rb +45 -0
- data/packaging/debian/internal/lib/tracking_database.rb +132 -0
- data/packaging/debian/internal/lib/tracking_task.rb +148 -0
- data/packaging/debian/internal/lib/utils.rb +78 -0
- data/packaging/debian/internal/publish/Rakefile +97 -0
- data/packaging/debian/internal/publish/oss-binaries.phusionpassenger.com-fingerprint.txt +1 -0
- data/packaging/debian/internal/publish/packagecloud_fingerprint.txt +1 -0
- data/packaging/debian/internal/publish/passenger_website_fingerprint.txt +1 -0
- data/packaging/debian/internal/publish/preinit.sh +7 -0
- data/packaging/debian/internal/publish/rakefile_support.rb +183 -0
- data/packaging/debian/internal/scripts/gpg_noninteractive/gpg +11 -0
- data/packaging/debian/internal/scripts/initccache.sh +35 -0
- data/packaging/debian/internal/scripts/inituidgid.sh +19 -0
- data/packaging/debian/internal/scripts/my_init +340 -0
- data/packaging/debian/internal/scripts/pin_certificates +34 -0
- data/packaging/debian/internal/scripts/regen_distro_info_script.sh +3 -0
- data/packaging/debian/internal/scripts/setup-vagrant.sh +12 -0
- data/packaging/debian/internal/scripts/setuser +31 -0
- data/packaging/debian/internal/shell/initpbuilder.sh +3 -0
- data/packaging/debian/internal/shell/preinit.sh +28 -0
- data/packaging/debian/internal/shell/sudoers.conf +1 -0
- data/packaging/debian/internal/test/apache/apache-24.conf +5 -0
- data/packaging/debian/internal/test/apache/apache-pre-24.conf +4 -0
- data/packaging/debian/internal/test/apache/vhost.conf +17 -0
- data/packaging/debian/internal/test/misc/config.json +15 -0
- data/packaging/debian/internal/test/misc/hosts.conf +4 -0
- data/packaging/debian/internal/test/misc/init.sh +25 -0
- data/packaging/debian/internal/test/misc/nodejs_test_app.js +6 -0
- data/packaging/debian/internal/test/misc/python_test_app.py +3 -0
- data/packaging/debian/internal/test/misc/ruby_test_app.rb +5 -0
- data/packaging/debian/internal/test/misc/test_support.rb +61 -0
- data/packaging/debian/internal/test/nginx/vhost.conf +23 -0
- data/packaging/debian/internal/test/system_web_server_test.rb +126 -0
- data/packaging/debian/internal/test/test.sh +141 -0
- data/packaging/debian/jenkins/publish/clear_caches.rb +48 -0
- data/packaging/debian/jenkins/publish/publish.sh +69 -0
- data/packaging/debian/jenkins/test/test.sh +63 -0
- data/packaging/debian/passenger_apt_automation.sublime-project +14 -0
- data/packaging/debian/publish +172 -0
- data/packaging/debian/shell +116 -0
- data/packaging/debian/test +142 -0
- metadata +563 -3
- metadata.gz.asc +7 -7
- data/resources/oss-binaries.phusionpassenger.com.crt +0 -208
@@ -0,0 +1,74 @@
|
|
1
|
+
##
|
2
|
+
# File:
|
3
|
+
# wordpress
|
4
|
+
# Description:
|
5
|
+
# This file is meant to offer a basic guide to get a Wordpress site up and
|
6
|
+
# running on Nginx. This file should be almost drop-in if the user is able
|
7
|
+
# to understand the three lines that need to be changed.
|
8
|
+
##
|
9
|
+
|
10
|
+
server {
|
11
|
+
|
12
|
+
# This is the URI of your website.
|
13
|
+
server_name domain.com;
|
14
|
+
|
15
|
+
# This is the root of the Wordpress directory.
|
16
|
+
root /var/www/wordpress;
|
17
|
+
|
18
|
+
# In some cases a favicon does not exist but this is not something you
|
19
|
+
# normally need to worry about. It's also a microscopic image and will
|
20
|
+
# just clutter the logs.
|
21
|
+
location = /favicon.ico {
|
22
|
+
log_not_found off;
|
23
|
+
access_log off;
|
24
|
+
}
|
25
|
+
|
26
|
+
# This is for the robots.txt file used by search engines.
|
27
|
+
location = /robots.txt {
|
28
|
+
# If you have one, you want to allow them access to it.
|
29
|
+
allow all;
|
30
|
+
# If you don't have one, you don't want to fill your logs with
|
31
|
+
# not found errors.
|
32
|
+
log_not_found off;
|
33
|
+
access_log off;
|
34
|
+
}
|
35
|
+
|
36
|
+
# This location block protects against a known attack. It happens if
|
37
|
+
# the attacker uploads a non-php file and attempts to run it as a
|
38
|
+
# php file on the server.
|
39
|
+
location ~ \..*/.*\.php$ {
|
40
|
+
return 403;
|
41
|
+
}
|
42
|
+
|
43
|
+
# This is our primary location block. The try_files directive will
|
44
|
+
# attempt to serve the data in the order listed. First try the exact
|
45
|
+
# request (such as an image or text file). If it doesn't exist, see if
|
46
|
+
# the directory exists. If not, then we move to the last options which
|
47
|
+
# passes the request to /index.php with the requested query.
|
48
|
+
location / {
|
49
|
+
try_files $uri $uri/ /index.php?q=$uri&$args;
|
50
|
+
}
|
51
|
+
|
52
|
+
# If a PHP file is served, this block will handle the request. This block
|
53
|
+
# works on the assumption you are using php-cgi listening on /tmp/phpcgi.socket.
|
54
|
+
# Please see the php example (usr/share/doc/nginx/exmaples/php) for more
|
55
|
+
# information about setting up PHP.
|
56
|
+
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
57
|
+
location ~ \.php$ {
|
58
|
+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
59
|
+
include fastcgi_params;
|
60
|
+
# Intercepting errors will cause PHP errors to appear in Nginx logs
|
61
|
+
fastcgi_intercept_errors on;
|
62
|
+
fastcgi_pass unix:/tmp/phpcgi.socket;
|
63
|
+
}
|
64
|
+
|
65
|
+
# As mentioned above, Nignx is king of static. If we're serving a static
|
66
|
+
# file that ends with one of the following extensions, it is best to set
|
67
|
+
# a very high expires time. This will generate fewer requests for the
|
68
|
+
# file. These requests will be logged if found, but not if they don't
|
69
|
+
# exist.
|
70
|
+
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
71
|
+
expires max;
|
72
|
+
log_not_found off;
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.absolute_path(File.dirname(__FILE__)) + '/../passenger/helpers'
|
2
|
+
|
3
|
+
def localstatedir
|
4
|
+
case distribution_class
|
5
|
+
when :ubuntu
|
6
|
+
if is_distribution?("<= quantal")
|
7
|
+
"/var/run"
|
8
|
+
else
|
9
|
+
"/run"
|
10
|
+
end
|
11
|
+
when :debian
|
12
|
+
if is_distribution?("<= wheezy")
|
13
|
+
"/var/run"
|
14
|
+
else
|
15
|
+
"/run"
|
16
|
+
end
|
17
|
+
else
|
18
|
+
raise "Unsupported distribution class"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def default_document_root
|
23
|
+
case distribution_class
|
24
|
+
when :ubuntu
|
25
|
+
if is_distribution?("<= quantal")
|
26
|
+
"/usr/share/nginx/www"
|
27
|
+
elsif is_distribution?("<= utopic")
|
28
|
+
"/usr/share/nginx/html"
|
29
|
+
else
|
30
|
+
"/var/www/html"
|
31
|
+
end
|
32
|
+
when :debian
|
33
|
+
if is_distribution?("<= wheezy")
|
34
|
+
"/usr/share/nginx/www"
|
35
|
+
else
|
36
|
+
"/var/www/html"
|
37
|
+
end
|
38
|
+
else
|
39
|
+
raise "Unsupported distribution class"
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Welcome to nginx on Debian!</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
width: 35em;
|
8
|
+
margin: 0 auto;
|
9
|
+
font-family: Tahoma, Verdana, Arial, sans-serif;
|
10
|
+
}
|
11
|
+
</style>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<h1>Welcome to nginx on Debian!</h1>
|
15
|
+
<p>If you see this page, the nginx web server is successfully installed and
|
16
|
+
working on Debian. Further configuration is required.</p>
|
17
|
+
|
18
|
+
<p>For online documentation and support please refer to
|
19
|
+
<a href="http://nginx.org/">nginx.org</a></p>
|
20
|
+
|
21
|
+
<p>
|
22
|
+
Please use the <tt>reportbug</tt> tool to report bugs in the
|
23
|
+
nginx package with Debian. However, check <a
|
24
|
+
href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=nginx;repeatmerged=0">existing
|
25
|
+
bug reports</a> before reporting a new bug.
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p><em>Thank you for using debian and nginx.</em></p>
|
29
|
+
|
30
|
+
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Welcome to nginx on Ubuntu!</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
width: 35em;
|
8
|
+
margin: 0 auto;
|
9
|
+
font-family: Tahoma, Verdana, Arial, sans-serif;
|
10
|
+
}
|
11
|
+
</style>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<h1>Welcome to nginx on Ubuntu!</h1>
|
15
|
+
<p>If you see this page, the nginx web server is successfully installed and
|
16
|
+
working on Ubuntu. Further configuration is required.</p>
|
17
|
+
|
18
|
+
<p>For online documentation and support please refer to
|
19
|
+
<a href="http://nginx.org/">nginx.org</a></p>
|
20
|
+
|
21
|
+
<p>
|
22
|
+
Please use the <tt>ubuntu-bug</tt> tool to report bugs in the
|
23
|
+
nginx package with Ubuntu. However, check <a
|
24
|
+
href="https://bugs.launchpad.net/ubuntu/+source/nginx">existing
|
25
|
+
bug reports</a> before reporting a new bug.
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p><em>Thank you for using Ubuntu and nginx.</em></p>
|
29
|
+
|
30
|
+
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
README for Modules versions
|
2
|
+
---------------------------
|
3
|
+
|
4
|
+
This file lists third party modules built with nginx in Debian, homepage and
|
5
|
+
version.
|
6
|
+
|
7
|
+
headers-more-nginx-module
|
8
|
+
https://github.com/agentzh/headers-more-nginx-module
|
9
|
+
Version: v0.26
|
10
|
+
|
11
|
+
nginx-development-kit
|
12
|
+
https://github.com/simpl/ngx_devel_kit/
|
13
|
+
Version: v0.2.19
|
14
|
+
|
15
|
+
nginx-auth-pam
|
16
|
+
https://github.com/stogh/ngx_http_auth_pam_module/
|
17
|
+
Version: 1.4
|
18
|
+
|
19
|
+
nginx-echo
|
20
|
+
https://github.com/agentzh/echo-nginx-module
|
21
|
+
Version: v0.57
|
22
|
+
|
23
|
+
nginx-lua
|
24
|
+
Homepage: https://github.com/chaoslawful/lua-nginx-module
|
25
|
+
https://github.com/chaoslawful/lua-nginx-module.git
|
26
|
+
Version: v0.9.15
|
27
|
+
|
28
|
+
nginx-upstream-fair
|
29
|
+
Homepage: https://github.com/gnosek/nginx-upstream-fair
|
30
|
+
Version: a18b409
|
31
|
+
|
32
|
+
#nginx-upstream-check-module
|
33
|
+
# Homepage: https://github.com/yaoweibin/nginx_upstream_check_module
|
34
|
+
# Version: 2662fe4
|
35
|
+
|
36
|
+
nginx-push
|
37
|
+
Homepage: http://pushmodule.slact.net/#download
|
38
|
+
https://github.com/slact/nginx_http_push_module/archive/v0.73.tar.gz
|
39
|
+
Version: 142b637e514e28be (0.73 + uninitialized warning fix)
|
40
|
+
|
41
|
+
#Removed as it no longer works with 1.3.x and above.
|
42
|
+
#nginx-upload
|
43
|
+
# Homepage: https://github.com/vkholodkov/nginx-upload-module
|
44
|
+
# Version: 2.2.0 + Patch for: https://github.com/vkholodkov/nginx-upload-module/issues/45
|
45
|
+
|
46
|
+
nginx-upload-progress
|
47
|
+
Homepage: https://github.com/masterzen/nginx-upload-progress-module
|
48
|
+
rm -r debian/nginx-upload-progress/test
|
49
|
+
Version: v0.9.1
|
50
|
+
|
51
|
+
nginx-cache-purge
|
52
|
+
Homepage: http://labs.frickle.com/nginx_ngx_cache_purge/
|
53
|
+
Version: 2.3
|
54
|
+
|
55
|
+
nginx-dav-ext-module
|
56
|
+
Homepage: https://github.com/arut/nginx-dav-ext-module
|
57
|
+
Version: v0.0.3-89d582d31a
|
58
|
+
|
59
|
+
ngx-fancyindex
|
60
|
+
Homepage: https://github.com/aperezdc/ngx-fancyindex
|
61
|
+
Version: 0.3.5
|
62
|
+
|
63
|
+
ngx_http_substitutions_filter_module
|
64
|
+
Homepage: https://github.com/yaoweibin/ngx_http_substitutions_filter_module
|
65
|
+
Version: v0.6.4
|
@@ -0,0 +1,510 @@
|
|
1
|
+
<!---
|
2
|
+
Don't edit this file manually! Instead you should generate it by using:
|
3
|
+
wiki2markdown.pl doc/HttpHeadersMoreModule.wiki
|
4
|
+
-->
|
5
|
+
|
6
|
+
Name
|
7
|
+
====
|
8
|
+
|
9
|
+
**ngx_headers_more** - Set and clear input and output headers...more than "add"!
|
10
|
+
|
11
|
+
*This module is not distributed with the Nginx source.* See [the installation instructions](#installation).
|
12
|
+
|
13
|
+
Table of Contents
|
14
|
+
=================
|
15
|
+
|
16
|
+
* [Version](#version)
|
17
|
+
* [Synopsis](#synopsis)
|
18
|
+
* [Description](#description)
|
19
|
+
* [Directives](#directives)
|
20
|
+
* [more_set_headers](#more_set_headers)
|
21
|
+
* [more_clear_headers](#more_clear_headers)
|
22
|
+
* [more_set_input_headers](#more_set_input_headers)
|
23
|
+
* [more_clear_input_headers](#more_clear_input_headers)
|
24
|
+
* [Limitations](#limitations)
|
25
|
+
* [Installation](#installation)
|
26
|
+
* [Compatibility](#compatibility)
|
27
|
+
* [Community](#community)
|
28
|
+
* [English Mailing List](#english-mailing-list)
|
29
|
+
* [Chinese Mailing List](#chinese-mailing-list)
|
30
|
+
* [Bugs and Patches](#bugs-and-patches)
|
31
|
+
* [Source Repository](#source-repository)
|
32
|
+
* [Changes](#changes)
|
33
|
+
* [Test Suite](#test-suite)
|
34
|
+
* [TODO](#todo)
|
35
|
+
* [Getting involved](#getting-involved)
|
36
|
+
* [Authors](#authors)
|
37
|
+
* [Copyright & License](#copyright--license)
|
38
|
+
* [See Also](#see-also)
|
39
|
+
|
40
|
+
Version
|
41
|
+
=======
|
42
|
+
|
43
|
+
This document describes headers-more-nginx-module [v0.25](http://github.com/agentzh/headers-more-nginx-module/tags) released on 10 January 2014.
|
44
|
+
|
45
|
+
Synopsis
|
46
|
+
========
|
47
|
+
|
48
|
+
```nginx
|
49
|
+
|
50
|
+
# set the Server output header
|
51
|
+
more_set_headers 'Server: my-server';
|
52
|
+
|
53
|
+
# set and clear output headers
|
54
|
+
location /bar {
|
55
|
+
more_set_headers 'X-MyHeader: blah' 'X-MyHeader2: foo';
|
56
|
+
more_set_headers -t 'text/plain text/css' 'Content-Type: text/foo';
|
57
|
+
more_set_headers -s '400 404 500 503' -s 413 'Foo: Bar';
|
58
|
+
more_clear_headers 'Content-Type';
|
59
|
+
|
60
|
+
# your proxy_pass/memcached_pass/or any other config goes here...
|
61
|
+
}
|
62
|
+
|
63
|
+
# set output headers
|
64
|
+
location /type {
|
65
|
+
more_set_headers 'Content-Type: text/plain';
|
66
|
+
# ...
|
67
|
+
}
|
68
|
+
|
69
|
+
# set input headers
|
70
|
+
location /foo {
|
71
|
+
set $my_host 'my dog';
|
72
|
+
more_set_input_headers 'Host: $my_host';
|
73
|
+
more_set_input_headers -t 'text/plain' 'X-Foo: bah';
|
74
|
+
|
75
|
+
# now $host and $http_host have their new values...
|
76
|
+
# ...
|
77
|
+
}
|
78
|
+
|
79
|
+
# replace input header X-Foo *only* if it already exists
|
80
|
+
more_set_input_headers -r 'X-Foo: howdy';
|
81
|
+
```
|
82
|
+
|
83
|
+
Description
|
84
|
+
===========
|
85
|
+
|
86
|
+
This module allows you to add, set, or clear any output
|
87
|
+
or input header that you specify.
|
88
|
+
|
89
|
+
This is an enhanced version of the standard
|
90
|
+
[headers](http://nginx.org/en/docs/http/ngx_http_headers_module.html) module because it provides more utilities like
|
91
|
+
resetting or clearing "builtin headers" like `Content-Type`,
|
92
|
+
`Content-Length`, and `Server`.
|
93
|
+
|
94
|
+
It also allows you to specify an optional HTTP status code
|
95
|
+
criteria using the `-s` option and an optional content
|
96
|
+
type criteria using the `-t` option while modifying the
|
97
|
+
output headers with the [more_set_headers](#more_set_headers) and
|
98
|
+
[more_clear_headers](#more_clear_headers) directives. For example,
|
99
|
+
|
100
|
+
```nginx
|
101
|
+
|
102
|
+
more_set_headers -s 404 -t 'text/html' 'X-Foo: Bar';
|
103
|
+
```
|
104
|
+
|
105
|
+
Input headers can be modified as well. For example
|
106
|
+
|
107
|
+
```nginx
|
108
|
+
|
109
|
+
location /foo {
|
110
|
+
more_set_input_headers 'Host: foo' 'User-Agent: faked';
|
111
|
+
# now $host, $http_host, $user_agent, and
|
112
|
+
# $http_user_agent all have their new values.
|
113
|
+
}
|
114
|
+
```
|
115
|
+
|
116
|
+
The option `-t` is also available in the
|
117
|
+
[more_set_input_headers](#more_set_input_headers) and
|
118
|
+
[more_clear_input_headers](#more_clear_input_headers) directives (for request header filtering) while the `-s` option
|
119
|
+
is not allowed.
|
120
|
+
|
121
|
+
Unlike the standard [headers](http://nginx.org/en/docs/http/ngx_http_headers_module.html) module, this module's directives will by
|
122
|
+
default apply to all the status codes, including `4xx` and `5xx`.
|
123
|
+
|
124
|
+
[Back to TOC](#table-of-contents)
|
125
|
+
|
126
|
+
Directives
|
127
|
+
==========
|
128
|
+
|
129
|
+
[Back to TOC](#table-of-contents)
|
130
|
+
|
131
|
+
more_set_headers
|
132
|
+
----------------
|
133
|
+
**syntax:** *more_set_headers [-t <content-type list>]... [-s <status-code list>]... <new-header>...*
|
134
|
+
|
135
|
+
**default:** *no*
|
136
|
+
|
137
|
+
**context:** *http, server, location, location if*
|
138
|
+
|
139
|
+
**phase:** *output-header-filter*
|
140
|
+
|
141
|
+
Replaces (if any) or adds (if not any) the specified output headers when the response status code matches the codes specified by the `-s` option *AND* the response content type matches the types specified by the `-t` option.
|
142
|
+
|
143
|
+
If either `-s` or `-t` is not specified or has an empty list value, then no match is required. Therefore, the following directive set the `Server` output header to the custom value for *any* status code and *any* content type:
|
144
|
+
|
145
|
+
```nginx
|
146
|
+
|
147
|
+
more_set_headers "Server: my_server";
|
148
|
+
```
|
149
|
+
|
150
|
+
Existing response headers with the same name are always overridden. If you want to add headers incrementally, use the standard [add_header](http://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header) directive instead.
|
151
|
+
|
152
|
+
A single directive can set/add multiple output headers. For example
|
153
|
+
|
154
|
+
```nginx
|
155
|
+
|
156
|
+
more_set_headers 'Foo: bar' 'Baz: bah';
|
157
|
+
```
|
158
|
+
|
159
|
+
Multiple occurrences of the options are allowed in a single directive. Their values will be merged together. For instance
|
160
|
+
|
161
|
+
```nginx
|
162
|
+
|
163
|
+
more_set_headers -s 404 -s '500 503' 'Foo: bar';
|
164
|
+
```
|
165
|
+
|
166
|
+
is equivalent to
|
167
|
+
|
168
|
+
```nginx
|
169
|
+
|
170
|
+
more_set_headers -s '404 500 503' 'Foo: bar';
|
171
|
+
```
|
172
|
+
|
173
|
+
The new header should be the one of the forms:
|
174
|
+
|
175
|
+
1. `Name: Value`
|
176
|
+
1. `Name: `
|
177
|
+
1. `Name`
|
178
|
+
|
179
|
+
The last two effectively clear the value of the header `Name`.
|
180
|
+
|
181
|
+
Nginx variables are allowed in header values. For example:
|
182
|
+
|
183
|
+
```nginx
|
184
|
+
|
185
|
+
set $my_var "dog";
|
186
|
+
more_set_headers "Server: $my_var";
|
187
|
+
```
|
188
|
+
|
189
|
+
But variables won't work in header keys due to performance considerations.
|
190
|
+
|
191
|
+
Multiple set/clear header directives are allowed in a single location, and they're executed sequentially.
|
192
|
+
|
193
|
+
Directives inherited from an upper level scope (say, http block or server blocks) are executed before the directives in the location block.
|
194
|
+
|
195
|
+
Note that although `more_set_headers` is allowed in *location* if blocks, it is *not* allowed in the *server* if blocks, as in
|
196
|
+
|
197
|
+
```nginx
|
198
|
+
|
199
|
+
? # This is NOT allowed!
|
200
|
+
? server {
|
201
|
+
? if ($args ~ 'download') {
|
202
|
+
? more_set_headers 'Foo: Bar';
|
203
|
+
? }
|
204
|
+
? ...
|
205
|
+
? }
|
206
|
+
```
|
207
|
+
|
208
|
+
Behind the scene, use of this directive and its friend [more_clear_headers](#more_clear_headers) will (lazily) register an ouput header filter that modifies `r->headers_out` the way you specify.
|
209
|
+
|
210
|
+
[Back to TOC](#table-of-contents)
|
211
|
+
|
212
|
+
more_clear_headers
|
213
|
+
------------------
|
214
|
+
**syntax:** *more_clear_headers [-t <content-type list>]... [-s <status-code list>]... <new-header>...*
|
215
|
+
|
216
|
+
**default:** *no*
|
217
|
+
|
218
|
+
**context:** *http, server, location, location if*
|
219
|
+
|
220
|
+
**phase:** *output-header-filter*
|
221
|
+
|
222
|
+
Clears the specified output headers.
|
223
|
+
|
224
|
+
In fact,
|
225
|
+
|
226
|
+
```nginx
|
227
|
+
|
228
|
+
more_clear_headers -s 404 -t 'text/plain' Foo Baz;
|
229
|
+
```
|
230
|
+
|
231
|
+
is exactly equivalent to
|
232
|
+
|
233
|
+
```nginx
|
234
|
+
|
235
|
+
more_set_headers -s 404 -t 'text/plain' "Foo: " "Baz: ";
|
236
|
+
```
|
237
|
+
|
238
|
+
or
|
239
|
+
|
240
|
+
```nginx
|
241
|
+
|
242
|
+
more_set_headers -s 404 -t 'text/plain' Foo Baz
|
243
|
+
```
|
244
|
+
|
245
|
+
See [more_set_headers](#more_set_headers) for more details.
|
246
|
+
|
247
|
+
Wildcard `*` can also be used to specify a header name pattern. For example, the following directive effectively clears *any* output headers starting by "`X-Hidden-`":
|
248
|
+
|
249
|
+
```nginx
|
250
|
+
|
251
|
+
more_clear_headers 'X-Hidden-*';
|
252
|
+
```
|
253
|
+
|
254
|
+
The `*` wildcard support was first introduced in [v0.09](#v009).
|
255
|
+
|
256
|
+
[Back to TOC](#table-of-contents)
|
257
|
+
|
258
|
+
more_set_input_headers
|
259
|
+
----------------------
|
260
|
+
**syntax:** *more_set_input_headers [-r] [-t <content-type list>]... <new-header>...*
|
261
|
+
|
262
|
+
**default:** *no*
|
263
|
+
|
264
|
+
**context:** *http, server, location, location if*
|
265
|
+
|
266
|
+
**phase:** *rewrite tail*
|
267
|
+
|
268
|
+
Very much like [more_set_headers](#more_set_headers) except that it operates on input headers (or request headers) and it only supports the `-t` option.
|
269
|
+
|
270
|
+
Note that using the `-t` option in this directive means filtering by the `Content-Type` *request* header, rather than the response header.
|
271
|
+
|
272
|
+
Behind the scene, use of this directive and its friend [more_clear_input_headers](#more_clear_input_headers) will (lazily) register a `rewrite phase` handler that modifies `r->headers_in` the way you specify. Note that it always run at the *end* of the `rewrite` so that it runs *after* the standard [rewrite module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html) and works in subrequests as well.
|
273
|
+
|
274
|
+
If the `-r` option is specified, then the headers will be replaced to the new values *only if* they already exist.
|
275
|
+
|
276
|
+
[Back to TOC](#table-of-contents)
|
277
|
+
|
278
|
+
more_clear_input_headers
|
279
|
+
------------------------
|
280
|
+
**syntax:** *more_clear_input_headers [-t <content-type list>]... <new-header>...*
|
281
|
+
|
282
|
+
**default:** *no*
|
283
|
+
|
284
|
+
**context:** *http, server, location, location if*
|
285
|
+
|
286
|
+
**phase:** *rewrite tail*
|
287
|
+
|
288
|
+
Clears the specified input headers.
|
289
|
+
|
290
|
+
In fact,
|
291
|
+
|
292
|
+
```nginx
|
293
|
+
|
294
|
+
more_clear_input_headers -s 404 -t 'text/plain' Foo Baz;
|
295
|
+
```
|
296
|
+
|
297
|
+
is exactly equivalent to
|
298
|
+
|
299
|
+
```nginx
|
300
|
+
|
301
|
+
more_set_input_headers -s 404 -t 'text/plain' "Foo: " "Baz: ";
|
302
|
+
```
|
303
|
+
|
304
|
+
or
|
305
|
+
|
306
|
+
```nginx
|
307
|
+
|
308
|
+
more_set_input_headers -s 404 -t 'text/plain' Foo Baz
|
309
|
+
```
|
310
|
+
|
311
|
+
See [more_set_input_headers](#more_set_input_headers) for more details.
|
312
|
+
|
313
|
+
[Back to TOC](#table-of-contents)
|
314
|
+
|
315
|
+
Limitations
|
316
|
+
===========
|
317
|
+
|
318
|
+
* Unlike the standard [headers](http://nginx.org/en/docs/http/ngx_http_headers_module.html) module, this module does not automatically take care of the constraint among the `Expires`, `Cache-Control`, and `Last-Modified` headers. You have to get them right yourself or use the [headers](http://nginx.org/en/docs/http/ngx_http_headers_module.html) module together with this module.
|
319
|
+
* You cannot remove the `Connection` response header using this module because the `Connection` response header is generated by the standard `ngx_http_header_filter_module` in the Nginx core, whose output header filter runs always *after* the filter of this module. The only way to actually remove the `Connection` header is to patch the Nginx core, that is, editing the C function `ngx_http_header_filter` in the `src/http/ngx_http_header_filter_module.c` file.
|
320
|
+
|
321
|
+
[Back to TOC](#table-of-contents)
|
322
|
+
|
323
|
+
Installation
|
324
|
+
============
|
325
|
+
|
326
|
+
Grab the nginx source code from [nginx.org](http://nginx.org/), for example,
|
327
|
+
the version 1.7.7 (see [nginx compatibility](#compatibility)), and then build the source with this module:
|
328
|
+
|
329
|
+
```bash
|
330
|
+
|
331
|
+
wget 'http://nginx.org/download/nginx-1.7.7.tar.gz'
|
332
|
+
tar -xzvf nginx-1.7.7.tar.gz
|
333
|
+
cd nginx-1.7.7/
|
334
|
+
|
335
|
+
# Here we assume you would install you nginx under /opt/nginx/.
|
336
|
+
./configure --prefix=/opt/nginx \
|
337
|
+
--add-module=/path/to/headers-more-nginx-module
|
338
|
+
|
339
|
+
make
|
340
|
+
make install
|
341
|
+
```
|
342
|
+
|
343
|
+
Download the latest version of the release tarball of this module from [headers-more-nginx-module file list](http://github.com/agentzh/headers-more-nginx-module/tags).
|
344
|
+
|
345
|
+
Also, this module is included and enabled by default in the [ngx_openresty bundle](http://openresty.org).
|
346
|
+
|
347
|
+
[Back to TOC](#table-of-contents)
|
348
|
+
|
349
|
+
Compatibility
|
350
|
+
=============
|
351
|
+
|
352
|
+
The following versions of Nginx should work with this module:
|
353
|
+
|
354
|
+
* **1.7.x** (last tested: 1.7.7)
|
355
|
+
* **1.6.x** (last tested: 1.6.2)
|
356
|
+
* **1.5.x** (last tested: 1.5.8)
|
357
|
+
* **1.4.x** (last tested: 1.4.4)
|
358
|
+
* **1.3.x** (last tested: 1.3.7)
|
359
|
+
* **1.2.x** (last tested: 1.2.9)
|
360
|
+
* **1.1.x** (last tested: 1.1.5)
|
361
|
+
* **1.0.x** (last tested: 1.0.11)
|
362
|
+
* **0.9.x** (last tested: 0.9.4)
|
363
|
+
* **0.8.x** (last tested: 0.8.54)
|
364
|
+
* **0.7.x >= 0.7.44** (last tested: 0.7.68)
|
365
|
+
|
366
|
+
Earlier versions of Nginx like 0.6.x and 0.5.x will *not* work.
|
367
|
+
|
368
|
+
If you find that any particular version of Nginx above 0.7.44 does not work with this module, please consider [reporting a bug](#report-bugs).
|
369
|
+
|
370
|
+
[Back to TOC](#table-of-contents)
|
371
|
+
|
372
|
+
Community
|
373
|
+
=========
|
374
|
+
|
375
|
+
[Back to TOC](#table-of-contents)
|
376
|
+
|
377
|
+
English Mailing List
|
378
|
+
--------------------
|
379
|
+
|
380
|
+
The [openresty-en](https://groups.google.com/group/openresty-en) mailing list is for English speakers.
|
381
|
+
|
382
|
+
[Back to TOC](#table-of-contents)
|
383
|
+
|
384
|
+
Chinese Mailing List
|
385
|
+
--------------------
|
386
|
+
|
387
|
+
The [openresty](https://groups.google.com/group/openresty) mailing list is for Chinese speakers.
|
388
|
+
|
389
|
+
[Back to TOC](#table-of-contents)
|
390
|
+
|
391
|
+
Bugs and Patches
|
392
|
+
================
|
393
|
+
|
394
|
+
Please submit bug reports, wishlists, or patches by
|
395
|
+
|
396
|
+
1. creating a ticket on the [GitHub Issue Tracker](http://github.com/chaoslawful/lua-nginx-module/issues),
|
397
|
+
1. or posting to the [OpenResty community](#community).
|
398
|
+
|
399
|
+
[Back to TOC](#table-of-contents)
|
400
|
+
|
401
|
+
Source Repository
|
402
|
+
=================
|
403
|
+
|
404
|
+
Available on github at [agentzh/headers-more-nginx-module](http://github.com/agentzh/headers-more-nginx-module).
|
405
|
+
|
406
|
+
[Back to TOC](#table-of-contents)
|
407
|
+
|
408
|
+
Changes
|
409
|
+
=======
|
410
|
+
|
411
|
+
The changes of every release of this module can be obtained from the ngx_openresty bundle's change logs:
|
412
|
+
|
413
|
+
<http://openresty.org/#Changes>
|
414
|
+
|
415
|
+
[Back to TOC](#table-of-contents)
|
416
|
+
|
417
|
+
Test Suite
|
418
|
+
==========
|
419
|
+
|
420
|
+
This module comes with a Perl-driven test suite. The [test cases](http://github.com/agentzh/headers-more-nginx-module/tree/master/t/) are
|
421
|
+
[declarative](http://github.com/agentzh/headers-more-nginx-module/blob/master/t/sanity.t) too. Thanks to the [Test::Nginx](http://search.cpan.org/perldoc?Test::Nginx) module in the Perl world.
|
422
|
+
|
423
|
+
To run it on your side:
|
424
|
+
|
425
|
+
```bash
|
426
|
+
|
427
|
+
$ PATH=/path/to/your/nginx-with-headers-more-module:$PATH prove -r t
|
428
|
+
```
|
429
|
+
|
430
|
+
To run the test suite with valgrind's memcheck, use the following commands:
|
431
|
+
|
432
|
+
```bash
|
433
|
+
|
434
|
+
$ export PATH=/path/to/your/nginx-with-headers-more-module:$PATH
|
435
|
+
$ TEST_NGINX_USE_VALGRIND=1 prove -r t
|
436
|
+
```
|
437
|
+
|
438
|
+
You need to terminate any Nginx processes before running the test suite if you have changed the Nginx server binary.
|
439
|
+
|
440
|
+
Because a single nginx server (by default, `localhost:1984`) is used across all the test scripts (`.t` files), it's meaningless to run the test suite in parallel by specifying `-jN` when invoking the `prove` utility.
|
441
|
+
|
442
|
+
Some parts of the test suite requires modules [proxy](http://nginx.org/en/docs/http/ngx_http_proxy_module.html), [rewrite](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html), and [echo](http://github.com/openresty/echo-nginx-module) to be enabled as well when building Nginx.
|
443
|
+
|
444
|
+
[Back to TOC](#table-of-contents)
|
445
|
+
|
446
|
+
TODO
|
447
|
+
====
|
448
|
+
|
449
|
+
* Support variables in new headers' keys.
|
450
|
+
|
451
|
+
[Back to TOC](#table-of-contents)
|
452
|
+
|
453
|
+
Getting involved
|
454
|
+
================
|
455
|
+
|
456
|
+
You'll be very welcomed to submit patches to the [author](#author) or just ask for a commit bit to the [source repository](#source-repository) on GitHub.
|
457
|
+
|
458
|
+
[Back to TOC](#table-of-contents)
|
459
|
+
|
460
|
+
Authors
|
461
|
+
=======
|
462
|
+
|
463
|
+
* Yichun "agentzh" Zhang (章亦春) *<agentzh@gmail.com>*, CloudFlare Inc.
|
464
|
+
* Bernd Dorn ( <http://www.lovelysystems.com/> )
|
465
|
+
|
466
|
+
This wiki page is also maintained by the author himself, and everybody is encouraged to improve this page as well.
|
467
|
+
|
468
|
+
[Back to TOC](#table-of-contents)
|
469
|
+
|
470
|
+
Copyright & License
|
471
|
+
===================
|
472
|
+
|
473
|
+
The code base is borrowed directly from the standard [headers](http://nginx.org/en/docs/http/ngx_http_headers_module.html) module in Nginx 0.8.24. This part of code is copyrighted by Igor Sysoev.
|
474
|
+
|
475
|
+
Copyright (c) 2009-2014, Yichun "agentzh" Zhang (章亦春) <agentzh@gmail.com>, CloudFlare Inc.
|
476
|
+
|
477
|
+
Copyright (c) 2010-2013, Bernd Dorn.
|
478
|
+
|
479
|
+
This module is licensed under the terms of the BSD license.
|
480
|
+
|
481
|
+
Redistribution and use in source and binary forms, with or without
|
482
|
+
modification, are permitted provided that the following conditions
|
483
|
+
are met:
|
484
|
+
|
485
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
486
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
487
|
+
|
488
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
489
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
490
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
491
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
492
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
493
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
494
|
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
495
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
496
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
497
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
498
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
499
|
+
|
500
|
+
[Back to TOC](#table-of-contents)
|
501
|
+
|
502
|
+
See Also
|
503
|
+
========
|
504
|
+
|
505
|
+
* The original thread on the Nginx mailing list that inspires this module's development: ["A question about add_header replication"](http://forum.nginx.org/read.php?2,11206,11738).
|
506
|
+
* The orginal announcement thread on the Nginx mailing list: ["The "headers_more" module: Set and clear output headers...more than 'add'!"](http://forum.nginx.org/read.php?2,23460).
|
507
|
+
* The original [blog post](http://agentzh.blogspot.com/2009/11/headers-more-module-scripting-input-and.html) about this module's initial development.
|
508
|
+
* The [echo module](http://github.com/openresty/echo-nginx-module) for Nginx module's automated testing.
|
509
|
+
* The standard [headers](http://nginx.org/en/docs/http/ngx_http_headers_module.html) module.
|
510
|
+
|