passenger-jmazzi 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL +6 -0
- data/LICENSE +19 -0
- data/NEWS +270 -0
- data/README +45 -0
- data/Rakefile +918 -0
- data/benchmark/ApplicationPool.cpp +52 -0
- data/benchmark/accept_vs_socketpair_vs_named_pipes.rb +126 -0
- data/benchmark/dispatcher.rb +42 -0
- data/benchmark/overhead_of_password_checking.rb +81 -0
- data/benchmark/socket_connections_vs_persistent_pipe.rb +99 -0
- data/benchmark/unix_sockets_vs_pipes.rb +83 -0
- data/bin/passenger-config +46 -0
- data/bin/passenger-install-apache2-module +224 -0
- data/bin/passenger-install-nginx-module +474 -0
- data/bin/passenger-make-enterprisey +83 -0
- data/bin/passenger-memory-stats +301 -0
- data/bin/passenger-spawn-server +68 -0
- data/bin/passenger-status +125 -0
- data/bin/passenger-stress-test +344 -0
- data/debian/compat +1 -0
- data/debian/control +21 -0
- data/debian/postinst +24 -0
- data/debian/prerm +2 -0
- data/doc/ApplicationPool algorithm.txt +402 -0
- data/doc/Architectural overview.txt +334 -0
- data/doc/Doxyfile +241 -0
- data/doc/Security of user switching support.txt +197 -0
- data/doc/Users guide Apache.txt +1848 -0
- data/doc/Users guide Nginx.txt +769 -0
- data/doc/definitions.h +5 -0
- data/doc/images/by_sa.png +0 -0
- data/doc/images/conservative_spawning.png +0 -0
- data/doc/images/conservative_spawning.svg +248 -0
- data/doc/images/icons/README +5 -0
- data/doc/images/icons/callouts/1.png +0 -0
- data/doc/images/icons/callouts/10.png +0 -0
- data/doc/images/icons/callouts/11.png +0 -0
- data/doc/images/icons/callouts/12.png +0 -0
- data/doc/images/icons/callouts/13.png +0 -0
- data/doc/images/icons/callouts/14.png +0 -0
- data/doc/images/icons/callouts/15.png +0 -0
- data/doc/images/icons/callouts/2.png +0 -0
- data/doc/images/icons/callouts/3.png +0 -0
- data/doc/images/icons/callouts/4.png +0 -0
- data/doc/images/icons/callouts/5.png +0 -0
- data/doc/images/icons/callouts/6.png +0 -0
- data/doc/images/icons/callouts/7.png +0 -0
- data/doc/images/icons/callouts/8.png +0 -0
- data/doc/images/icons/callouts/9.png +0 -0
- data/doc/images/icons/caution.png +0 -0
- data/doc/images/icons/example.png +0 -0
- data/doc/images/icons/home.png +0 -0
- data/doc/images/icons/important.png +0 -0
- data/doc/images/icons/next.png +0 -0
- data/doc/images/icons/note.png +0 -0
- data/doc/images/icons/prev.png +0 -0
- data/doc/images/icons/tip.png +0 -0
- data/doc/images/icons/up.png +0 -0
- data/doc/images/icons/warning.png +0 -0
- data/doc/images/passenger_architecture.png +0 -0
- data/doc/images/passenger_architecture.svg +401 -0
- data/doc/images/phusion_banner.png +0 -0
- data/doc/images/smart-lv2.png +0 -0
- data/doc/images/smart-lv2.svg +320 -0
- data/doc/images/spawn_server_architecture.png +0 -0
- data/doc/images/spawn_server_architecture.svg +655 -0
- data/doc/images/typical_isolated_web_application.png +0 -0
- data/doc/images/typical_isolated_web_application.svg +213 -0
- data/doc/template/horo.rb +613 -0
- data/doc/users_guide_snippets/analysis_and_system_maintenance_tools.txt +144 -0
- data/doc/users_guide_snippets/appendix_a_about.txt +13 -0
- data/doc/users_guide_snippets/appendix_b_terminology.txt +63 -0
- data/doc/users_guide_snippets/appendix_c_spawning_methods.txt +304 -0
- data/doc/users_guide_snippets/global_queueing_explained.txt +78 -0
- data/doc/users_guide_snippets/rackup_specifications.txt +71 -0
- data/doc/users_guide_snippets/rails_spawn_method.txt +48 -0
- data/doc/users_guide_snippets/tips.txt +173 -0
- data/ext/apache2/Bucket.cpp +190 -0
- data/ext/apache2/Bucket.h +87 -0
- data/ext/apache2/Configuration.cpp +798 -0
- data/ext/apache2/Configuration.h +405 -0
- data/ext/apache2/DirectoryMapper.h +296 -0
- data/ext/apache2/Hooks.cpp +1617 -0
- data/ext/apache2/Hooks.h +45 -0
- data/ext/apache2/LICENSE-CNRI.TXT +79 -0
- data/ext/apache2/mod_passenger.c +38 -0
- data/ext/boost/LICENSE.TXT +23 -0
- data/ext/boost/VERSION.TXT +1 -0
- data/ext/boost/algorithm/string/case_conv.hpp +176 -0
- data/ext/boost/algorithm/string/compare.hpp +199 -0
- data/ext/boost/algorithm/string/concept.hpp +83 -0
- data/ext/boost/algorithm/string/config.hpp +28 -0
- data/ext/boost/algorithm/string/constants.hpp +36 -0
- data/ext/boost/algorithm/string/detail/case_conv.hpp +112 -0
- data/ext/boost/algorithm/string/detail/find_format.hpp +193 -0
- data/ext/boost/algorithm/string/detail/find_format_all.hpp +263 -0
- data/ext/boost/algorithm/string/detail/find_format_store.hpp +71 -0
- data/ext/boost/algorithm/string/detail/finder.hpp +646 -0
- data/ext/boost/algorithm/string/detail/formatter.hpp +94 -0
- data/ext/boost/algorithm/string/detail/replace_storage.hpp +159 -0
- data/ext/boost/algorithm/string/detail/sequence.hpp +200 -0
- data/ext/boost/algorithm/string/detail/util.hpp +106 -0
- data/ext/boost/algorithm/string/erase.hpp +844 -0
- data/ext/boost/algorithm/string/find_format.hpp +269 -0
- data/ext/boost/algorithm/string/finder.hpp +270 -0
- data/ext/boost/algorithm/string/formatter.hpp +103 -0
- data/ext/boost/algorithm/string/replace.hpp +928 -0
- data/ext/boost/algorithm/string/sequence_traits.hpp +193 -0
- data/ext/boost/algorithm/string/yes_no_type.hpp +33 -0
- data/ext/boost/assert.hpp +50 -0
- data/ext/boost/bind.hpp +1689 -0
- data/ext/boost/bind/arg.hpp +62 -0
- data/ext/boost/bind/bind_cc.hpp +117 -0
- data/ext/boost/bind/bind_mf_cc.hpp +227 -0
- data/ext/boost/bind/bind_template.hpp +345 -0
- data/ext/boost/bind/mem_fn_cc.hpp +103 -0
- data/ext/boost/bind/mem_fn_template.hpp +1020 -0
- data/ext/boost/bind/placeholders.hpp +68 -0
- data/ext/boost/bind/storage.hpp +475 -0
- data/ext/boost/call_traits.hpp +24 -0
- data/ext/boost/checked_delete.hpp +69 -0
- data/ext/boost/concept/assert.hpp +46 -0
- data/ext/boost/concept/detail/concept_def.hpp +51 -0
- data/ext/boost/concept/detail/concept_undef.hpp +5 -0
- data/ext/boost/concept/detail/general.hpp +66 -0
- data/ext/boost/concept/detail/has_constraints.hpp +48 -0
- data/ext/boost/concept/usage.hpp +43 -0
- data/ext/boost/concept_check.hpp +988 -0
- data/ext/boost/config.hpp +70 -0
- data/ext/boost/config/abi/borland_prefix.hpp +27 -0
- data/ext/boost/config/abi/borland_suffix.hpp +12 -0
- data/ext/boost/config/abi/msvc_prefix.hpp +8 -0
- data/ext/boost/config/abi/msvc_suffix.hpp +8 -0
- data/ext/boost/config/abi_prefix.hpp +25 -0
- data/ext/boost/config/abi_suffix.hpp +26 -0
- data/ext/boost/config/auto_link.hpp +368 -0
- data/ext/boost/config/compiler/borland.hpp +209 -0
- data/ext/boost/config/compiler/comeau.hpp +59 -0
- data/ext/boost/config/compiler/common_edg.hpp +62 -0
- data/ext/boost/config/compiler/compaq_cxx.hpp +19 -0
- data/ext/boost/config/compiler/digitalmars.hpp +67 -0
- data/ext/boost/config/compiler/gcc.hpp +149 -0
- data/ext/boost/config/compiler/gcc_xml.hpp +30 -0
- data/ext/boost/config/compiler/greenhills.hpp +28 -0
- data/ext/boost/config/compiler/hp_acc.hpp +95 -0
- data/ext/boost/config/compiler/intel.hpp +162 -0
- data/ext/boost/config/compiler/kai.hpp +35 -0
- data/ext/boost/config/compiler/metrowerks.hpp +111 -0
- data/ext/boost/config/compiler/mpw.hpp +51 -0
- data/ext/boost/config/compiler/pgi.hpp +25 -0
- data/ext/boost/config/compiler/sgi_mipspro.hpp +28 -0
- data/ext/boost/config/compiler/sunpro_cc.hpp +98 -0
- data/ext/boost/config/compiler/vacpp.hpp +60 -0
- data/ext/boost/config/compiler/visualc.hpp +191 -0
- data/ext/boost/config/no_tr1/complex.hpp +28 -0
- data/ext/boost/config/no_tr1/functional.hpp +28 -0
- data/ext/boost/config/no_tr1/memory.hpp +28 -0
- data/ext/boost/config/no_tr1/utility.hpp +28 -0
- data/ext/boost/config/platform/aix.hpp +33 -0
- data/ext/boost/config/platform/amigaos.hpp +15 -0
- data/ext/boost/config/platform/beos.hpp +26 -0
- data/ext/boost/config/platform/bsd.hpp +73 -0
- data/ext/boost/config/platform/cygwin.hpp +51 -0
- data/ext/boost/config/platform/hpux.hpp +84 -0
- data/ext/boost/config/platform/irix.hpp +31 -0
- data/ext/boost/config/platform/linux.hpp +98 -0
- data/ext/boost/config/platform/macos.hpp +78 -0
- data/ext/boost/config/platform/qnxnto.hpp +31 -0
- data/ext/boost/config/platform/solaris.hpp +21 -0
- data/ext/boost/config/platform/win32.hpp +58 -0
- data/ext/boost/config/posix_features.hpp +95 -0
- data/ext/boost/config/requires_threads.hpp +92 -0
- data/ext/boost/config/select_compiler_config.hpp +115 -0
- data/ext/boost/config/select_platform_config.hpp +90 -0
- data/ext/boost/config/select_stdlib_config.hpp +68 -0
- data/ext/boost/config/stdlib/dinkumware.hpp +106 -0
- data/ext/boost/config/stdlib/libcomo.hpp +46 -0
- data/ext/boost/config/stdlib/libstdcpp3.hpp +73 -0
- data/ext/boost/config/stdlib/modena.hpp +30 -0
- data/ext/boost/config/stdlib/msl.hpp +59 -0
- data/ext/boost/config/stdlib/roguewave.hpp +153 -0
- data/ext/boost/config/stdlib/sgi.hpp +111 -0
- data/ext/boost/config/stdlib/stlport.hpp +201 -0
- data/ext/boost/config/stdlib/vacpp.hpp +18 -0
- data/ext/boost/config/suffix.hpp +566 -0
- data/ext/boost/config/user.hpp +124 -0
- data/ext/boost/cstdint.hpp +449 -0
- data/ext/boost/current_function.hpp +67 -0
- data/ext/boost/date_time/adjust_functors.hpp +178 -0
- data/ext/boost/date_time/c_time.hpp +91 -0
- data/ext/boost/date_time/compiler_config.hpp +149 -0
- data/ext/boost/date_time/constrained_value.hpp +98 -0
- data/ext/boost/date_time/date.hpp +197 -0
- data/ext/boost/date_time/date_clock_device.hpp +77 -0
- data/ext/boost/date_time/date_defs.hpp +26 -0
- data/ext/boost/date_time/date_duration.hpp +147 -0
- data/ext/boost/date_time/date_duration_types.hpp +269 -0
- data/ext/boost/date_time/date_facet.hpp +775 -0
- data/ext/boost/date_time/date_format_simple.hpp +159 -0
- data/ext/boost/date_time/date_formatting.hpp +127 -0
- data/ext/boost/date_time/date_formatting_limited.hpp +121 -0
- data/ext/boost/date_time/date_formatting_locales.hpp +233 -0
- data/ext/boost/date_time/date_generator_formatter.hpp +263 -0
- data/ext/boost/date_time/date_generator_parser.hpp +329 -0
- data/ext/boost/date_time/date_generators.hpp +509 -0
- data/ext/boost/date_time/date_iterator.hpp +101 -0
- data/ext/boost/date_time/date_names_put.hpp +320 -0
- data/ext/boost/date_time/date_parsing.hpp +299 -0
- data/ext/boost/date_time/dst_rules.hpp +391 -0
- data/ext/boost/date_time/filetime_functions.hpp +78 -0
- data/ext/boost/date_time/format_date_parser.hpp +731 -0
- data/ext/boost/date_time/gregorian/conversion.hpp +73 -0
- data/ext/boost/date_time/gregorian/formatters.hpp +162 -0
- data/ext/boost/date_time/gregorian/formatters_limited.hpp +81 -0
- data/ext/boost/date_time/gregorian/greg_calendar.hpp +47 -0
- data/ext/boost/date_time/gregorian/greg_date.hpp +135 -0
- data/ext/boost/date_time/gregorian/greg_day.hpp +57 -0
- data/ext/boost/date_time/gregorian/greg_day_of_year.hpp +38 -0
- data/ext/boost/date_time/gregorian/greg_duration.hpp +38 -0
- data/ext/boost/date_time/gregorian/greg_duration_types.hpp +34 -0
- data/ext/boost/date_time/gregorian/greg_month.hpp +105 -0
- data/ext/boost/date_time/gregorian/greg_weekday.hpp +66 -0
- data/ext/boost/date_time/gregorian/greg_year.hpp +53 -0
- data/ext/boost/date_time/gregorian/greg_ymd.hpp +33 -0
- data/ext/boost/date_time/gregorian/gregorian.hpp +38 -0
- data/ext/boost/date_time/gregorian/gregorian_io.hpp +777 -0
- data/ext/boost/date_time/gregorian/gregorian_types.hpp +109 -0
- data/ext/boost/date_time/gregorian/parsers.hpp +91 -0
- data/ext/boost/date_time/gregorian_calendar.hpp +70 -0
- data/ext/boost/date_time/gregorian_calendar.ipp +219 -0
- data/ext/boost/date_time/int_adapter.hpp +507 -0
- data/ext/boost/date_time/iso_format.hpp +303 -0
- data/ext/boost/date_time/locale_config.hpp +31 -0
- data/ext/boost/date_time/microsec_time_clock.hpp +205 -0
- data/ext/boost/date_time/parse_format_base.hpp +29 -0
- data/ext/boost/date_time/period.hpp +377 -0
- data/ext/boost/date_time/period_formatter.hpp +196 -0
- data/ext/boost/date_time/period_parser.hpp +196 -0
- data/ext/boost/date_time/posix_time/conversion.hpp +93 -0
- data/ext/boost/date_time/posix_time/date_duration_operators.hpp +114 -0
- data/ext/boost/date_time/posix_time/posix_time.hpp +39 -0
- data/ext/boost/date_time/posix_time/posix_time_config.hpp +178 -0
- data/ext/boost/date_time/posix_time/posix_time_duration.hpp +82 -0
- data/ext/boost/date_time/posix_time/posix_time_io.hpp +246 -0
- data/ext/boost/date_time/posix_time/posix_time_system.hpp +68 -0
- data/ext/boost/date_time/posix_time/posix_time_types.hpp +55 -0
- data/ext/boost/date_time/posix_time/ptime.hpp +65 -0
- data/ext/boost/date_time/posix_time/time_formatters.hpp +289 -0
- data/ext/boost/date_time/posix_time/time_parsers.hpp +44 -0
- data/ext/boost/date_time/posix_time/time_period.hpp +29 -0
- data/ext/boost/date_time/special_defs.hpp +25 -0
- data/ext/boost/date_time/special_values_formatter.hpp +96 -0
- data/ext/boost/date_time/special_values_parser.hpp +159 -0
- data/ext/boost/date_time/string_convert.hpp +33 -0
- data/ext/boost/date_time/string_parse_tree.hpp +278 -0
- data/ext/boost/date_time/strings_from_facet.hpp +123 -0
- data/ext/boost/date_time/time.hpp +190 -0
- data/ext/boost/date_time/time_clock.hpp +83 -0
- data/ext/boost/date_time/time_defs.hpp +33 -0
- data/ext/boost/date_time/time_duration.hpp +281 -0
- data/ext/boost/date_time/time_facet.hpp +1263 -0
- data/ext/boost/date_time/time_formatting_streams.hpp +119 -0
- data/ext/boost/date_time/time_iterator.hpp +52 -0
- data/ext/boost/date_time/time_parsing.hpp +321 -0
- data/ext/boost/date_time/time_resolution_traits.hpp +140 -0
- data/ext/boost/date_time/time_system_counted.hpp +254 -0
- data/ext/boost/date_time/time_system_split.hpp +213 -0
- data/ext/boost/date_time/wrapping_int.hpp +163 -0
- data/ext/boost/date_time/year_month_day.hpp +45 -0
- data/ext/boost/detail/atomic_count.hpp +124 -0
- data/ext/boost/detail/atomic_count_gcc.hpp +68 -0
- data/ext/boost/detail/atomic_count_gcc_x86.hpp +84 -0
- data/ext/boost/detail/atomic_count_pthreads.hpp +96 -0
- data/ext/boost/detail/atomic_count_solaris.hpp +59 -0
- data/ext/boost/detail/atomic_count_sync.hpp +57 -0
- data/ext/boost/detail/atomic_count_win32.hpp +63 -0
- data/ext/boost/detail/bad_weak_ptr.hpp +59 -0
- data/ext/boost/detail/call_traits.hpp +164 -0
- data/ext/boost/detail/endian.hpp +73 -0
- data/ext/boost/detail/indirect_traits.hpp +487 -0
- data/ext/boost/detail/iterator.hpp +494 -0
- data/ext/boost/detail/lcast_precision.hpp +184 -0
- data/ext/boost/detail/limits.hpp +449 -0
- data/ext/boost/detail/reference_content.hpp +141 -0
- data/ext/boost/detail/shared_count.hpp +375 -0
- data/ext/boost/detail/sp_counted_base.hpp +81 -0
- data/ext/boost/detail/sp_counted_base_acc_ia64.hpp +150 -0
- data/ext/boost/detail/sp_counted_base_cw_ppc.hpp +170 -0
- data/ext/boost/detail/sp_counted_base_cw_x86.hpp +158 -0
- data/ext/boost/detail/sp_counted_base_gcc_ia64.hpp +157 -0
- data/ext/boost/detail/sp_counted_base_gcc_ppc.hpp +181 -0
- data/ext/boost/detail/sp_counted_base_gcc_sparc.hpp +166 -0
- data/ext/boost/detail/sp_counted_base_gcc_x86.hpp +173 -0
- data/ext/boost/detail/sp_counted_base_nt.hpp +107 -0
- data/ext/boost/detail/sp_counted_base_pt.hpp +135 -0
- data/ext/boost/detail/sp_counted_base_solaris.hpp +113 -0
- data/ext/boost/detail/sp_counted_base_sync.hpp +151 -0
- data/ext/boost/detail/sp_counted_base_w32.hpp +130 -0
- data/ext/boost/detail/sp_counted_impl.hpp +231 -0
- data/ext/boost/detail/sp_typeinfo.hpp +83 -0
- data/ext/boost/detail/workaround.hpp +202 -0
- data/ext/boost/enable_shared_from_this.hpp +73 -0
- data/ext/boost/function.hpp +66 -0
- data/ext/boost/function/detail/function_iterate.hpp +16 -0
- data/ext/boost/function/detail/maybe_include.hpp +267 -0
- data/ext/boost/function/detail/prologue.hpp +25 -0
- data/ext/boost/function/function_base.hpp +762 -0
- data/ext/boost/function/function_template.hpp +969 -0
- data/ext/boost/function_equal.hpp +28 -0
- data/ext/boost/get_pointer.hpp +29 -0
- data/ext/boost/implicit_cast.hpp +29 -0
- data/ext/boost/integer_traits.hpp +236 -0
- data/ext/boost/io/ios_state.hpp +431 -0
- data/ext/boost/io_fwd.hpp +67 -0
- data/ext/boost/is_placeholder.hpp +31 -0
- data/ext/boost/iterator.hpp +59 -0
- data/ext/boost/iterator/detail/config_def.hpp +135 -0
- data/ext/boost/iterator/detail/config_undef.hpp +25 -0
- data/ext/boost/iterator/detail/enable_if.hpp +86 -0
- data/ext/boost/iterator/detail/facade_iterator_category.hpp +200 -0
- data/ext/boost/iterator/detail/minimum_category.hpp +116 -0
- data/ext/boost/iterator/interoperable.hpp +50 -0
- data/ext/boost/iterator/iterator_adaptor.hpp +366 -0
- data/ext/boost/iterator/iterator_categories.hpp +188 -0
- data/ext/boost/iterator/iterator_facade.hpp +879 -0
- data/ext/boost/iterator/iterator_traits.hpp +92 -0
- data/ext/boost/iterator/reverse_iterator.hpp +69 -0
- data/ext/boost/iterator/transform_iterator.hpp +188 -0
- data/ext/boost/lexical_cast.hpp +1205 -0
- data/ext/boost/limits.hpp +146 -0
- data/ext/boost/mem_fn.hpp +389 -0
- data/ext/boost/mpl/always.hpp +39 -0
- data/ext/boost/mpl/and.hpp +60 -0
- data/ext/boost/mpl/apply.hpp +229 -0
- data/ext/boost/mpl/apply_fwd.hpp +107 -0
- data/ext/boost/mpl/apply_wrap.hpp +203 -0
- data/ext/boost/mpl/arg.hpp +131 -0
- data/ext/boost/mpl/arg_fwd.hpp +28 -0
- data/ext/boost/mpl/assert.hpp +370 -0
- data/ext/boost/mpl/aux_/adl_barrier.hpp +48 -0
- data/ext/boost/mpl/aux_/arg_typedef.hpp +31 -0
- data/ext/boost/mpl/aux_/arity.hpp +39 -0
- data/ext/boost/mpl/aux_/arity_spec.hpp +67 -0
- data/ext/boost/mpl/aux_/common_name_wknd.hpp +34 -0
- data/ext/boost/mpl/aux_/config/adl.hpp +40 -0
- data/ext/boost/mpl/aux_/config/arrays.hpp +30 -0
- data/ext/boost/mpl/aux_/config/bind.hpp +33 -0
- data/ext/boost/mpl/aux_/config/compiler.hpp +64 -0
- data/ext/boost/mpl/aux_/config/ctps.hpp +30 -0
- data/ext/boost/mpl/aux_/config/dtp.hpp +46 -0
- data/ext/boost/mpl/aux_/config/eti.hpp +47 -0
- data/ext/boost/mpl/aux_/config/gcc.hpp +23 -0
- data/ext/boost/mpl/aux_/config/has_apply.hpp +32 -0
- data/ext/boost/mpl/aux_/config/has_xxx.hpp +33 -0
- data/ext/boost/mpl/aux_/config/integral.hpp +38 -0
- data/ext/boost/mpl/aux_/config/intel.hpp +21 -0
- data/ext/boost/mpl/aux_/config/lambda.hpp +32 -0
- data/ext/boost/mpl/aux_/config/msvc.hpp +21 -0
- data/ext/boost/mpl/aux_/config/msvc_typename.hpp +26 -0
- data/ext/boost/mpl/aux_/config/nttp.hpp +41 -0
- data/ext/boost/mpl/aux_/config/overload_resolution.hpp +29 -0
- data/ext/boost/mpl/aux_/config/pp_counter.hpp +26 -0
- data/ext/boost/mpl/aux_/config/preprocessor.hpp +39 -0
- data/ext/boost/mpl/aux_/config/static_constant.hpp +25 -0
- data/ext/boost/mpl/aux_/config/ttp.hpp +41 -0
- data/ext/boost/mpl/aux_/config/use_preprocessed.hpp +19 -0
- data/ext/boost/mpl/aux_/config/workaround.hpp +19 -0
- data/ext/boost/mpl/aux_/full_lambda.hpp +354 -0
- data/ext/boost/mpl/aux_/has_apply.hpp +32 -0
- data/ext/boost/mpl/aux_/has_type.hpp +23 -0
- data/ext/boost/mpl/aux_/include_preprocessed.hpp +42 -0
- data/ext/boost/mpl/aux_/integral_wrapper.hpp +93 -0
- data/ext/boost/mpl/aux_/lambda_arity_param.hpp +25 -0
- data/ext/boost/mpl/aux_/lambda_support.hpp +169 -0
- data/ext/boost/mpl/aux_/msvc_never_true.hpp +34 -0
- data/ext/boost/mpl/aux_/na.hpp +95 -0
- data/ext/boost/mpl/aux_/na_assert.hpp +34 -0
- data/ext/boost/mpl/aux_/na_fwd.hpp +31 -0
- data/ext/boost/mpl/aux_/na_spec.hpp +175 -0
- data/ext/boost/mpl/aux_/nested_type_wknd.hpp +48 -0
- data/ext/boost/mpl/aux_/nttp_decl.hpp +35 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/and.hpp +69 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/apply.hpp +169 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp +52 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp +84 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/arg.hpp +123 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/bind.hpp +561 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp +52 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp +558 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/or.hpp +69 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp +105 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/quote.hpp +123 -0
- data/ext/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp +101 -0
- data/ext/boost/mpl/aux_/preprocessor/def_params_tail.hpp +105 -0
- data/ext/boost/mpl/aux_/preprocessor/enum.hpp +62 -0
- data/ext/boost/mpl/aux_/preprocessor/filter_params.hpp +28 -0
- data/ext/boost/mpl/aux_/preprocessor/params.hpp +65 -0
- data/ext/boost/mpl/aux_/preprocessor/sub.hpp +65 -0
- data/ext/boost/mpl/aux_/static_cast.hpp +27 -0
- data/ext/boost/mpl/aux_/template_arity.hpp +189 -0
- data/ext/boost/mpl/aux_/template_arity_fwd.hpp +23 -0
- data/ext/boost/mpl/aux_/type_wrapper.hpp +47 -0
- data/ext/boost/mpl/aux_/value_wknd.hpp +89 -0
- data/ext/boost/mpl/aux_/yes_no.hpp +58 -0
- data/ext/boost/mpl/bind.hpp +551 -0
- data/ext/boost/mpl/bind_fwd.hpp +99 -0
- data/ext/boost/mpl/bool.hpp +39 -0
- data/ext/boost/mpl/bool_fwd.hpp +33 -0
- data/ext/boost/mpl/eval_if.hpp +71 -0
- data/ext/boost/mpl/has_xxx.hpp +272 -0
- data/ext/boost/mpl/identity.hpp +45 -0
- data/ext/boost/mpl/if.hpp +135 -0
- data/ext/boost/mpl/int.hpp +22 -0
- data/ext/boost/mpl/int_fwd.hpp +27 -0
- data/ext/boost/mpl/integral_c.hpp +51 -0
- data/ext/boost/mpl/integral_c_fwd.hpp +32 -0
- data/ext/boost/mpl/integral_c_tag.hpp +26 -0
- data/ext/boost/mpl/lambda.hpp +29 -0
- data/ext/boost/mpl/lambda_fwd.hpp +57 -0
- data/ext/boost/mpl/limits/arity.hpp +21 -0
- data/ext/boost/mpl/logical.hpp +21 -0
- data/ext/boost/mpl/next.hpp +19 -0
- data/ext/boost/mpl/next_prior.hpp +49 -0
- data/ext/boost/mpl/not.hpp +51 -0
- data/ext/boost/mpl/or.hpp +61 -0
- data/ext/boost/mpl/placeholders.hpp +100 -0
- data/ext/boost/mpl/protect.hpp +55 -0
- data/ext/boost/mpl/quote.hpp +140 -0
- data/ext/boost/mpl/size_t.hpp +25 -0
- data/ext/boost/mpl/size_t_fwd.hpp +28 -0
- data/ext/boost/mpl/void.hpp +76 -0
- data/ext/boost/mpl/void_fwd.hpp +26 -0
- data/ext/boost/next_prior.hpp +51 -0
- data/ext/boost/non_type.hpp +27 -0
- data/ext/boost/noncopyable.hpp +36 -0
- data/ext/boost/none.hpp +28 -0
- data/ext/boost/none_t.hpp +24 -0
- data/ext/boost/operators.hpp +943 -0
- data/ext/boost/optional.hpp +18 -0
- data/ext/boost/optional/optional.hpp +922 -0
- data/ext/boost/optional/optional_fwd.hpp +22 -0
- data/ext/boost/preprocessor/arithmetic/add.hpp +51 -0
- data/ext/boost/preprocessor/arithmetic/dec.hpp +288 -0
- data/ext/boost/preprocessor/arithmetic/inc.hpp +288 -0
- data/ext/boost/preprocessor/arithmetic/sub.hpp +50 -0
- data/ext/boost/preprocessor/array/data.hpp +28 -0
- data/ext/boost/preprocessor/array/elem.hpp +29 -0
- data/ext/boost/preprocessor/array/size.hpp +28 -0
- data/ext/boost/preprocessor/cat.hpp +35 -0
- data/ext/boost/preprocessor/comma_if.hpp +17 -0
- data/ext/boost/preprocessor/config/config.hpp +70 -0
- data/ext/boost/preprocessor/control/detail/while.hpp +536 -0
- data/ext/boost/preprocessor/control/expr_iif.hpp +31 -0
- data/ext/boost/preprocessor/control/if.hpp +30 -0
- data/ext/boost/preprocessor/control/iif.hpp +34 -0
- data/ext/boost/preprocessor/control/while.hpp +312 -0
- data/ext/boost/preprocessor/debug/error.hpp +33 -0
- data/ext/boost/preprocessor/detail/auto_rec.hpp +293 -0
- data/ext/boost/preprocessor/detail/check.hpp +48 -0
- data/ext/boost/preprocessor/detail/is_binary.hpp +30 -0
- data/ext/boost/preprocessor/empty.hpp +17 -0
- data/ext/boost/preprocessor/enum.hpp +17 -0
- data/ext/boost/preprocessor/enum_params.hpp +17 -0
- data/ext/boost/preprocessor/facilities/empty.hpp +21 -0
- data/ext/boost/preprocessor/facilities/identity.hpp +23 -0
- data/ext/boost/preprocessor/identity.hpp +17 -0
- data/ext/boost/preprocessor/inc.hpp +17 -0
- data/ext/boost/preprocessor/iterate.hpp +17 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/lower1.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/upper1.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/iter/forward1.hpp +1342 -0
- data/ext/boost/preprocessor/iteration/iterate.hpp +82 -0
- data/ext/boost/preprocessor/list/adt.hpp +73 -0
- data/ext/boost/preprocessor/list/append.hpp +40 -0
- data/ext/boost/preprocessor/list/detail/fold_left.hpp +279 -0
- data/ext/boost/preprocessor/list/detail/fold_right.hpp +277 -0
- data/ext/boost/preprocessor/list/fold_left.hpp +303 -0
- data/ext/boost/preprocessor/list/fold_right.hpp +40 -0
- data/ext/boost/preprocessor/list/for_each_i.hpp +65 -0
- data/ext/boost/preprocessor/list/reverse.hpp +40 -0
- data/ext/boost/preprocessor/list/transform.hpp +49 -0
- data/ext/boost/preprocessor/logical/and.hpp +30 -0
- data/ext/boost/preprocessor/logical/bitand.hpp +38 -0
- data/ext/boost/preprocessor/logical/bool.hpp +288 -0
- data/ext/boost/preprocessor/logical/compl.hpp +36 -0
- data/ext/boost/preprocessor/punctuation/comma.hpp +21 -0
- data/ext/boost/preprocessor/punctuation/comma_if.hpp +31 -0
- data/ext/boost/preprocessor/repeat.hpp +17 -0
- data/ext/boost/preprocessor/repetition/detail/for.hpp +536 -0
- data/ext/boost/preprocessor/repetition/enum.hpp +66 -0
- data/ext/boost/preprocessor/repetition/enum_binary_params.hpp +54 -0
- data/ext/boost/preprocessor/repetition/enum_params.hpp +41 -0
- data/ext/boost/preprocessor/repetition/for.hpp +306 -0
- data/ext/boost/preprocessor/repetition/repeat.hpp +825 -0
- data/ext/boost/preprocessor/repetition/repeat_from_to.hpp +87 -0
- data/ext/boost/preprocessor/seq/elem.hpp +304 -0
- data/ext/boost/preprocessor/seq/enum.hpp +288 -0
- data/ext/boost/preprocessor/seq/for_each_i.hpp +61 -0
- data/ext/boost/preprocessor/seq/seq.hpp +44 -0
- data/ext/boost/preprocessor/seq/size.hpp +548 -0
- data/ext/boost/preprocessor/slot/detail/def.hpp +49 -0
- data/ext/boost/preprocessor/slot/detail/shared.hpp +247 -0
- data/ext/boost/preprocessor/slot/slot.hpp +32 -0
- data/ext/boost/preprocessor/stringize.hpp +33 -0
- data/ext/boost/preprocessor/tuple/eat.hpp +57 -0
- data/ext/boost/preprocessor/tuple/elem.hpp +385 -0
- data/ext/boost/preprocessor/tuple/rem.hpp +72 -0
- data/ext/boost/preprocessor/tuple/to_list.hpp +62 -0
- data/ext/boost/range/as_literal.hpp +131 -0
- data/ext/boost/range/begin.hpp +132 -0
- data/ext/boost/range/config.hpp +54 -0
- data/ext/boost/range/const_iterator.hpp +64 -0
- data/ext/boost/range/detail/common.hpp +117 -0
- data/ext/boost/range/detail/implementation_help.hpp +99 -0
- data/ext/boost/range/detail/sfinae.hpp +77 -0
- data/ext/boost/range/detail/str_types.hpp +38 -0
- data/ext/boost/range/difference_type.hpp +29 -0
- data/ext/boost/range/distance.hpp +34 -0
- data/ext/boost/range/empty.hpp +34 -0
- data/ext/boost/range/end.hpp +131 -0
- data/ext/boost/range/functions.hpp +27 -0
- data/ext/boost/range/iterator.hpp +72 -0
- data/ext/boost/range/iterator_range.hpp +643 -0
- data/ext/boost/range/mutable_iterator.hpp +64 -0
- data/ext/boost/range/rbegin.hpp +65 -0
- data/ext/boost/range/rend.hpp +65 -0
- data/ext/boost/range/reverse_iterator.hpp +40 -0
- data/ext/boost/range/size.hpp +36 -0
- data/ext/boost/range/size_type.hpp +78 -0
- data/ext/boost/range/value_type.hpp +34 -0
- data/ext/boost/ref.hpp +178 -0
- data/ext/boost/shared_ptr.hpp +619 -0
- data/ext/boost/src/pthread/exceptions.cpp +146 -0
- data/ext/boost/src/pthread/once.cpp +51 -0
- data/ext/boost/src/pthread/thread.cpp +709 -0
- data/ext/boost/src/pthread/timeconv.inl +130 -0
- data/ext/boost/src/tss_null.cpp +34 -0
- data/ext/boost/src/win32/exceptions.cpp +124 -0
- data/ext/boost/src/win32/thread.cpp +629 -0
- data/ext/boost/src/win32/timeconv.inl +130 -0
- data/ext/boost/src/win32/tss_dll.cpp +72 -0
- data/ext/boost/src/win32/tss_pe.cpp +269 -0
- data/ext/boost/static_assert.hpp +122 -0
- data/ext/boost/thread.hpp +21 -0
- data/ext/boost/thread/condition.hpp +16 -0
- data/ext/boost/thread/condition_variable.hpp +21 -0
- data/ext/boost/thread/detail/config.hpp +94 -0
- data/ext/boost/thread/detail/move.hpp +33 -0
- data/ext/boost/thread/detail/platform.hpp +71 -0
- data/ext/boost/thread/exceptions.hpp +109 -0
- data/ext/boost/thread/locks.hpp +589 -0
- data/ext/boost/thread/mutex.hpp +21 -0
- data/ext/boost/thread/once.hpp +29 -0
- data/ext/boost/thread/pthread/condition_variable.hpp +184 -0
- data/ext/boost/thread/pthread/condition_variable_fwd.hpp +66 -0
- data/ext/boost/thread/pthread/mutex.hpp +211 -0
- data/ext/boost/thread/pthread/once.hpp +85 -0
- data/ext/boost/thread/pthread/pthread_mutex_scoped_lock.hpp +50 -0
- data/ext/boost/thread/pthread/recursive_mutex.hpp +249 -0
- data/ext/boost/thread/pthread/thread.hpp +339 -0
- data/ext/boost/thread/pthread/thread_data.hpp +102 -0
- data/ext/boost/thread/pthread/timespec.hpp +28 -0
- data/ext/boost/thread/pthread/tss.hpp +103 -0
- data/ext/boost/thread/recursive_mutex.hpp +21 -0
- data/ext/boost/thread/thread.hpp +22 -0
- data/ext/boost/thread/thread_time.hpp +46 -0
- data/ext/boost/thread/tss.hpp +18 -0
- data/ext/boost/thread/xtime.hpp +88 -0
- data/ext/boost/throw_exception.hpp +46 -0
- data/ext/boost/token_functions.hpp +621 -0
- data/ext/boost/token_iterator.hpp +128 -0
- data/ext/boost/tokenizer.hpp +98 -0
- data/ext/boost/type.hpp +18 -0
- data/ext/boost/type_traits/add_const.hpp +47 -0
- data/ext/boost/type_traits/add_pointer.hpp +72 -0
- data/ext/boost/type_traits/add_reference.hpp +89 -0
- data/ext/boost/type_traits/alignment_of.hpp +100 -0
- data/ext/boost/type_traits/broken_compiler_spec.hpp +117 -0
- data/ext/boost/type_traits/composite_traits.hpp +29 -0
- data/ext/boost/type_traits/config.hpp +76 -0
- data/ext/boost/type_traits/conversion_traits.hpp +17 -0
- data/ext/boost/type_traits/detail/bool_trait_def.hpp +173 -0
- data/ext/boost/type_traits/detail/bool_trait_undef.hpp +27 -0
- data/ext/boost/type_traits/detail/cv_traits_impl.hpp +97 -0
- data/ext/boost/type_traits/detail/false_result.hpp +28 -0
- data/ext/boost/type_traits/detail/ice_and.hpp +35 -0
- data/ext/boost/type_traits/detail/ice_eq.hpp +36 -0
- data/ext/boost/type_traits/detail/ice_not.hpp +31 -0
- data/ext/boost/type_traits/detail/ice_or.hpp +34 -0
- data/ext/boost/type_traits/detail/is_function_ptr_helper.hpp +220 -0
- data/ext/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +817 -0
- data/ext/boost/type_traits/detail/size_t_trait_def.hpp +58 -0
- data/ext/boost/type_traits/detail/size_t_trait_undef.hpp +16 -0
- data/ext/boost/type_traits/detail/template_arity_spec.hpp +31 -0
- data/ext/boost/type_traits/detail/type_trait_def.hpp +61 -0
- data/ext/boost/type_traits/detail/type_trait_undef.hpp +19 -0
- data/ext/boost/type_traits/detail/yes_no_type.hpp +26 -0
- data/ext/boost/type_traits/function_traits.hpp +236 -0
- data/ext/boost/type_traits/has_nothrow_copy.hpp +39 -0
- data/ext/boost/type_traits/has_trivial_copy.hpp +49 -0
- data/ext/boost/type_traits/ice.hpp +20 -0
- data/ext/boost/type_traits/integral_constant.hpp +53 -0
- data/ext/boost/type_traits/intrinsics.hpp +153 -0
- data/ext/boost/type_traits/is_abstract.hpp +144 -0
- data/ext/boost/type_traits/is_arithmetic.hpp +43 -0
- data/ext/boost/type_traits/is_array.hpp +90 -0
- data/ext/boost/type_traits/is_class.hpp +128 -0
- data/ext/boost/type_traits/is_const.hpp +142 -0
- data/ext/boost/type_traits/is_convertible.hpp +418 -0
- data/ext/boost/type_traits/is_enum.hpp +180 -0
- data/ext/boost/type_traits/is_float.hpp +27 -0
- data/ext/boost/type_traits/is_function.hpp +95 -0
- data/ext/boost/type_traits/is_integral.hpp +73 -0
- data/ext/boost/type_traits/is_member_function_pointer.hpp +134 -0
- data/ext/boost/type_traits/is_member_pointer.hpp +114 -0
- data/ext/boost/type_traits/is_pod.hpp +135 -0
- data/ext/boost/type_traits/is_pointer.hpp +160 -0
- data/ext/boost/type_traits/is_reference.hpp +116 -0
- data/ext/boost/type_traits/is_same.hpp +103 -0
- data/ext/boost/type_traits/is_scalar.hpp +55 -0
- data/ext/boost/type_traits/is_union.hpp +49 -0
- data/ext/boost/type_traits/is_void.hpp +33 -0
- data/ext/boost/type_traits/is_volatile.hpp +131 -0
- data/ext/boost/type_traits/remove_const.hpp +78 -0
- data/ext/boost/type_traits/remove_cv.hpp +61 -0
- data/ext/boost/type_traits/remove_pointer.hpp +43 -0
- data/ext/boost/type_traits/remove_reference.hpp +50 -0
- data/ext/boost/type_traits/type_with_alignment.hpp +288 -0
- data/ext/boost/utility.hpp +19 -0
- data/ext/boost/utility/addressof.hpp +58 -0
- data/ext/boost/utility/base_from_member.hpp +87 -0
- data/ext/boost/utility/compare_pointees.hpp +68 -0
- data/ext/boost/utility/enable_if.hpp +119 -0
- data/ext/boost/visit_each.hpp +29 -0
- data/ext/boost/weak_ptr.hpp +188 -0
- data/ext/common/Application.h +511 -0
- data/ext/common/ApplicationPool.h +205 -0
- data/ext/common/ApplicationPoolServer.h +794 -0
- data/ext/common/ApplicationPoolServerExecutable.cpp +743 -0
- data/ext/common/ApplicationPoolStatusReporter.h +336 -0
- data/ext/common/Base64.cpp +143 -0
- data/ext/common/Base64.h +57 -0
- data/ext/common/CachedFileStat.cpp +62 -0
- data/ext/common/CachedFileStat.h +51 -0
- data/ext/common/CachedFileStat.hpp +243 -0
- data/ext/common/DummySpawnManager.h +108 -0
- data/ext/common/Exceptions.h +258 -0
- data/ext/common/FileChangeChecker.h +209 -0
- data/ext/common/Logging.cpp +65 -0
- data/ext/common/Logging.h +123 -0
- data/ext/common/MessageChannel.h +615 -0
- data/ext/common/PoolOptions.h +355 -0
- data/ext/common/SpawnManager.h +561 -0
- data/ext/common/StandardApplicationPool.h +821 -0
- data/ext/common/StaticString.h +148 -0
- data/ext/common/StringListCreator.h +83 -0
- data/ext/common/SystemTime.cpp +33 -0
- data/ext/common/SystemTime.h +88 -0
- data/ext/common/Timer.h +90 -0
- data/ext/common/Utils.cpp +681 -0
- data/ext/common/Utils.h +497 -0
- data/ext/common/Version.h +31 -0
- data/ext/nginx/Configuration.c +1098 -0
- data/ext/nginx/Configuration.h +71 -0
- data/ext/nginx/ContentHandler.c +1225 -0
- data/ext/nginx/ContentHandler.h +64 -0
- data/ext/nginx/HelperServer.cpp +850 -0
- data/ext/nginx/HttpStatusExtractor.h +350 -0
- data/ext/nginx/ScgiRequestParser.h +317 -0
- data/ext/nginx/StaticContentHandler.c +257 -0
- data/ext/nginx/StaticContentHandler.h +37 -0
- data/ext/nginx/config +45 -0
- data/ext/nginx/ngx_http_passenger_module.c +653 -0
- data/ext/nginx/ngx_http_passenger_module.h +72 -0
- data/ext/oxt/backtrace.cpp +177 -0
- data/ext/oxt/backtrace.hpp +135 -0
- data/ext/oxt/detail/backtrace_disabled.hpp +39 -0
- data/ext/oxt/detail/backtrace_enabled.hpp +155 -0
- data/ext/oxt/detail/spin_lock_gcc_x86.hpp +82 -0
- data/ext/oxt/detail/spin_lock_portable.hpp +38 -0
- data/ext/oxt/detail/spin_lock_pthreads.hpp +97 -0
- data/ext/oxt/detail/tracable_exception_disabled.hpp +46 -0
- data/ext/oxt/detail/tracable_exception_enabled.hpp +48 -0
- data/ext/oxt/macros.hpp +58 -0
- data/ext/oxt/spin_lock.hpp +55 -0
- data/ext/oxt/system_calls.cpp +351 -0
- data/ext/oxt/system_calls.hpp +244 -0
- data/ext/oxt/thread.cpp +32 -0
- data/ext/oxt/thread.hpp +335 -0
- data/ext/oxt/tracable_exception.cpp +87 -0
- data/ext/oxt/tracable_exception.hpp +35 -0
- data/ext/phusion_passenger/extconf.rb +36 -0
- data/ext/phusion_passenger/native_support.c +308 -0
- data/lib/jeweler_spec.rb +86 -0
- data/lib/phusion_passenger/abstract_installer.rb +196 -0
- data/lib/phusion_passenger/abstract_request_handler.rb +475 -0
- data/lib/phusion_passenger/abstract_server.rb +369 -0
- data/lib/phusion_passenger/abstract_server_collection.rb +306 -0
- data/lib/phusion_passenger/admin_tools.rb +48 -0
- data/lib/phusion_passenger/admin_tools/control_process.rb +150 -0
- data/lib/phusion_passenger/application.rb +113 -0
- data/lib/phusion_passenger/console_text_template.rb +66 -0
- data/lib/phusion_passenger/constants.rb +31 -0
- data/lib/phusion_passenger/dependencies.rb +425 -0
- data/lib/phusion_passenger/events.rb +50 -0
- data/lib/phusion_passenger/exceptions.rb +103 -0
- data/lib/phusion_passenger/html_template.rb +109 -0
- data/lib/phusion_passenger/message_channel.rb +229 -0
- data/lib/phusion_passenger/packaging.rb +39 -0
- data/lib/phusion_passenger/platform_info.rb +550 -0
- data/lib/phusion_passenger/rack/application_spawner.rb +146 -0
- data/lib/phusion_passenger/rack/request_handler.rb +122 -0
- data/lib/phusion_passenger/railz/application_spawner.rb +412 -0
- data/lib/phusion_passenger/railz/cgi_fixed.rb +68 -0
- data/lib/phusion_passenger/railz/framework_spawner.rb +334 -0
- data/lib/phusion_passenger/railz/request_handler.rb +73 -0
- data/lib/phusion_passenger/simple_benchmarking.rb +52 -0
- data/lib/phusion_passenger/spawn_manager.rb +372 -0
- data/lib/phusion_passenger/templates/apache2/apache_must_be_compiled_with_compatible_mpm.txt.erb +9 -0
- data/lib/phusion_passenger/templates/apache2/config_snippets.txt.erb +13 -0
- data/lib/phusion_passenger/templates/apache2/deployment_example.txt.erb +23 -0
- data/lib/phusion_passenger/templates/apache2/no_write_permission_to_passenger_root.txt.erb +9 -0
- data/lib/phusion_passenger/templates/apache2/possible_solutions_for_compilation_and_installation_problems.txt.erb +11 -0
- data/lib/phusion_passenger/templates/apache2/run_installer_as_root.txt.erb +8 -0
- data/lib/phusion_passenger/templates/apache2/welcome.txt.erb +15 -0
- data/lib/phusion_passenger/templates/app_exited_during_initialization.html.erb +14 -0
- data/lib/phusion_passenger/templates/app_init_error.html.erb +46 -0
- data/lib/phusion_passenger/templates/database_error.html.erb +24 -0
- data/lib/phusion_passenger/templates/error_layout.css +97 -0
- data/lib/phusion_passenger/templates/error_layout.html.erb +39 -0
- data/lib/phusion_passenger/templates/framework_init_error.html.erb +10 -0
- data/lib/phusion_passenger/templates/general_error.html.erb +8 -0
- data/lib/phusion_passenger/templates/invalid_app_root.html.erb +9 -0
- data/lib/phusion_passenger/templates/load_error.html.erb +6 -0
- data/lib/phusion_passenger/templates/nginx/ask_for_extra_configure_flags.txt.erb +8 -0
- data/lib/phusion_passenger/templates/nginx/cannot_write_to_dir.txt.erb +11 -0
- data/lib/phusion_passenger/templates/nginx/config_snippets.txt.erb +17 -0
- data/lib/phusion_passenger/templates/nginx/config_snippets_inserted.txt.erb +20 -0
- data/lib/phusion_passenger/templates/nginx/confirm_extra_configure_flags.txt.erb +5 -0
- data/lib/phusion_passenger/templates/nginx/deployment_example.txt.erb +22 -0
- data/lib/phusion_passenger/templates/nginx/pcre_could_not_be_downloaded.txt.erb +11 -0
- data/lib/phusion_passenger/templates/nginx/pcre_could_not_be_extracted.txt.erb +11 -0
- data/lib/phusion_passenger/templates/nginx/possible_solutions_for_compilation_and_installation_problems.txt.erb +11 -0
- data/lib/phusion_passenger/templates/nginx/possible_solutions_for_download_and_extraction_problems.txt.erb +20 -0
- data/lib/phusion_passenger/templates/nginx/query_download_and_install.txt.erb +21 -0
- data/lib/phusion_passenger/templates/nginx/run_installer_as_root.txt.erb +8 -0
- data/lib/phusion_passenger/templates/nginx/welcome.txt.erb +15 -0
- data/lib/phusion_passenger/templates/version_not_found.html.erb +6 -0
- data/lib/phusion_passenger/utils.rb +611 -0
- data/lib/phusion_passenger/utils/rewindable_input.rb +116 -0
- data/lib/phusion_passenger/wsgi/application_spawner.rb +104 -0
- data/lib/phusion_passenger/wsgi/request_handler.py +199 -0
- data/man/passenger-config.1 +29 -0
- data/man/passenger-make-enterprisey.8 +23 -0
- data/man/passenger-memory-stats.8 +33 -0
- data/man/passenger-status.8 +43 -0
- data/man/passenger-stress-test.1 +43 -0
- data/misc/copy_boost_headers.rb +125 -0
- data/misc/find_owner_pipe_leaks.rb +128 -0
- data/misc/rake/cplusplus.rb +57 -0
- data/misc/rake/extensions.rb +182 -0
- data/misc/rake/gempackagetask.rb +99 -0
- data/misc/rake/packagetask.rb +186 -0
- data/misc/rake/rdoctask.rb +209 -0
- data/misc/render_error_pages.rb +116 -0
- data/test/ApplicationPoolServerTest.cpp +114 -0
- data/test/ApplicationPoolServer_ApplicationPoolTest.cpp +33 -0
- data/test/ApplicationPoolTest.cpp +599 -0
- data/test/Base64Test.cpp +48 -0
- data/test/CachedFileStatTest.cpp +402 -0
- data/test/CxxTestMain.cpp +143 -0
- data/test/FileChangeCheckerTest.cpp +331 -0
- data/test/HttpStatusExtractorTest.cpp +198 -0
- data/test/MessageChannelTest.cpp +312 -0
- data/test/PoolOptionsTest.cpp +117 -0
- data/test/ScgiRequestParserTest.cpp +337 -0
- data/test/SpawnManagerTest.cpp +64 -0
- data/test/StandardApplicationPoolTest.cpp +27 -0
- data/test/StaticStringTest.cpp +51 -0
- data/test/SystemTimeTest.cpp +37 -0
- data/test/UtilsTest.cpp +257 -0
- data/test/config.yml.example +30 -0
- data/test/integration_tests/apache2_tests.rb +595 -0
- data/test/integration_tests/hello_world_rack_spec.rb +36 -0
- data/test/integration_tests/hello_world_wsgi_spec.rb +41 -0
- data/test/integration_tests/mycook_spec.rb +192 -0
- data/test/integration_tests/nginx_tests.rb +151 -0
- data/test/oxt/backtrace_test.cpp +128 -0
- data/test/oxt/oxt_test_main.cpp +25 -0
- data/test/oxt/syscall_interruption_test.cpp +38 -0
- data/test/ruby/abstract_request_handler_spec.rb +85 -0
- data/test/ruby/abstract_server_collection_spec.rb +246 -0
- data/test/ruby/abstract_server_spec.rb +51 -0
- data/test/ruby/application_spec.rb +43 -0
- data/test/ruby/message_channel_spec.rb +170 -0
- data/test/ruby/rack/application_spawner_spec.rb +99 -0
- data/test/ruby/rails/application_spawner_spec.rb +159 -0
- data/test/ruby/rails/framework_spawner_spec.rb +133 -0
- data/test/ruby/rails/minimal_spawner_spec.rb +93 -0
- data/test/ruby/rails/spawner_error_handling_spec.rb +107 -0
- data/test/ruby/rails/spawner_privilege_lowering_spec.rb +97 -0
- data/test/ruby/spawn_manager_spec.rb +205 -0
- data/test/ruby/spawn_server_spec.rb +26 -0
- data/test/ruby/utils_spec.rb +335 -0
- data/test/ruby/wsgi/application_spawner_spec.rb +54 -0
- data/test/stub/apache2/httpd.conf.erb +81 -0
- data/test/stub/apache2/mime.types +748 -0
- data/test/stub/garbage1.dat +0 -0
- data/test/stub/garbage2.dat +0 -0
- data/test/stub/garbage3.dat +0 -0
- data/test/stub/http_request.yml +23 -0
- data/test/stub/message_channel.rb +9 -0
- data/test/stub/message_channel_2.rb +10 -0
- data/test/stub/message_channel_3.rb +17 -0
- data/test/stub/nginx/koi-utf +109 -0
- data/test/stub/nginx/koi-win +103 -0
- data/test/stub/nginx/mime.types +70 -0
- data/test/stub/nginx/nginx.conf.erb +57 -0
- data/test/stub/nginx/win-utf +126 -0
- data/test/stub/rack/config.ru +4 -0
- data/test/stub/rack/public/rack.jpg +0 -0
- data/test/stub/rails_apps/foobar/app/controllers/application.rb +12 -0
- data/test/stub/rails_apps/foobar/app/controllers/bar_controller_1.rb +5 -0
- data/test/stub/rails_apps/foobar/app/controllers/bar_controller_2.rb +5 -0
- data/test/stub/rails_apps/foobar/app/controllers/foo_controller.rb +21 -0
- data/test/stub/rails_apps/foobar/app/helpers/application_helper.rb +3 -0
- data/test/stub/rails_apps/foobar/config/boot.rb +108 -0
- data/test/stub/rails_apps/foobar/config/database.yml +19 -0
- data/test/stub/rails_apps/foobar/config/environment.rb +59 -0
- data/test/stub/rails_apps/foobar/config/environments/development.rb +17 -0
- data/test/stub/rails_apps/foobar/config/environments/production.rb +18 -0
- data/test/stub/rails_apps/foobar/config/initializers/inflections.rb +10 -0
- data/test/stub/rails_apps/foobar/config/initializers/mime_types.rb +5 -0
- data/test/stub/rails_apps/foobar/config/routes.rb +35 -0
- data/test/stub/rails_apps/mycook/app/controllers/application.rb +12 -0
- data/test/stub/rails_apps/mycook/app/controllers/recipes_controller.rb +5 -0
- data/test/stub/rails_apps/mycook/app/controllers/uploads_controller.rb +15 -0
- data/test/stub/rails_apps/mycook/app/controllers/welcome_controller.rb +71 -0
- data/test/stub/rails_apps/mycook/app/helpers/application_helper.rb +3 -0
- data/test/stub/rails_apps/mycook/app/views/layouts/default.rhtml +26 -0
- data/test/stub/rails_apps/mycook/app/views/recipes/create.rhtml +13 -0
- data/test/stub/rails_apps/mycook/app/views/recipes/index.rhtml +3 -0
- data/test/stub/rails_apps/mycook/app/views/recipes/new.rhtml +8 -0
- data/test/stub/rails_apps/mycook/app/views/uploads/index.rhtml +1 -0
- data/test/stub/rails_apps/mycook/app/views/uploads/new.html.erb +8 -0
- data/test/stub/rails_apps/mycook/app/views/welcome/cached.rhtml +1 -0
- data/test/stub/rails_apps/mycook/app/views/welcome/index.rhtml +20 -0
- data/test/stub/rails_apps/mycook/config/boot.rb +108 -0
- data/test/stub/rails_apps/mycook/config/database.yml +19 -0
- data/test/stub/rails_apps/mycook/config/environment.rb +61 -0
- data/test/stub/rails_apps/mycook/config/environments/development.rb +18 -0
- data/test/stub/rails_apps/mycook/config/environments/production.rb +19 -0
- data/test/stub/rails_apps/mycook/config/initializers/inflections.rb +10 -0
- data/test/stub/rails_apps/mycook/config/initializers/mime_types.rb +5 -0
- data/test/stub/rails_apps/mycook/config/routes.rb +38 -0
- data/test/stub/rails_apps/mycook/log/useless.txt +1 -0
- data/test/stub/rails_apps/mycook/public/404.html +30 -0
- data/test/stub/rails_apps/mycook/public/422.html +30 -0
- data/test/stub/rails_apps/mycook/public/500.html +30 -0
- data/test/stub/rails_apps/mycook/public/dispatch.cgi +10 -0
- data/test/stub/rails_apps/mycook/public/dispatch.fcgi +24 -0
- data/test/stub/rails_apps/mycook/public/dispatch.rb +10 -0
- data/test/stub/rails_apps/mycook/public/favicon.ico +0 -0
- data/test/stub/rails_apps/mycook/public/images/angrywizard.gif +0 -0
- data/test/stub/rails_apps/mycook/public/images/cookbook.gif +0 -0
- data/test/stub/rails_apps/mycook/public/images/header.png +0 -0
- data/test/stub/rails_apps/mycook/public/images/rails.png +0 -0
- data/test/stub/rails_apps/mycook/public/javascripts/application.js +2 -0
- data/test/stub/rails_apps/mycook/public/javascripts/controls.js +963 -0
- data/test/stub/rails_apps/mycook/public/javascripts/dragdrop.js +972 -0
- data/test/stub/rails_apps/mycook/public/javascripts/effects.js +1120 -0
- data/test/stub/rails_apps/mycook/public/javascripts/prototype.js +4225 -0
- data/test/stub/rails_apps/mycook/public/robots.txt +5 -0
- data/test/stub/rails_apps/mycook/public/uploads.html +26 -0
- data/test/stub/rails_apps/mycook/public/welcome/cached.html +26 -0
- data/test/stub/rails_apps/mycook/sites/some.site/public/uploads.html +26 -0
- data/test/stub/rails_apps/mycook/sites/some.site/public/welcome/cached.html +26 -0
- data/test/stub/rails_apps/mycook/tmp/cache/useless.txt +1 -0
- data/test/stub/rails_apps/mycook/tmp/pids/useless.txt +1 -0
- data/test/stub/rails_apps/mycook/tmp/sessions/useless.txt +1 -0
- data/test/stub/rails_apps/mycook/tmp/sockets/useless.txt +1 -0
- data/test/stub/spawn_server.rb +20 -0
- data/test/stub/upload_data.txt +494 -0
- data/test/stub/vendor_rails/minimal/README +1 -0
- data/test/stub/vendor_rails/minimal/actionmailer/lib/action_mailer.rb +0 -0
- data/test/stub/vendor_rails/minimal/actionpack/lib/action_controller.rb +19 -0
- data/test/stub/vendor_rails/minimal/actionpack/lib/action_pack.rb +0 -0
- data/test/stub/vendor_rails/minimal/actionpack/lib/action_view.rb +0 -0
- data/test/stub/vendor_rails/minimal/activerecord/lib/active_record.rb +7 -0
- data/test/stub/vendor_rails/minimal/activeresource/lib/active_resource.rb +0 -0
- data/test/stub/vendor_rails/minimal/activesupport/lib/active_support.rb +17 -0
- data/test/stub/vendor_rails/minimal/activesupport/lib/active_support/whiny_nil.rb +0 -0
- data/test/stub/vendor_rails/minimal/railties/lib/dispatcher.rb +0 -0
- data/test/stub/vendor_rails/minimal/railties/lib/initializer.rb +52 -0
- data/test/stub/vendor_rails/minimal/railties/lib/ruby_version_check.rb +1 -0
- data/test/stub/wsgi/passenger_wsgi.py +3 -0
- data/test/stub/wsgi/public/wsgi-snake.jpg +0 -0
- data/test/stub/zsfa/header.png +0 -0
- data/test/stub/zsfa/index.html +14 -0
- data/test/stub/zsfa/zsfa.png +0 -0
- data/test/support/Support.cpp +84 -0
- data/test/support/Support.h +118 -0
- data/test/support/apache2_controller.rb +250 -0
- data/test/support/config.rb +38 -0
- data/test/support/multipart.rb +62 -0
- data/test/support/nginx_controller.rb +98 -0
- data/test/support/run_rspec_tests.rb +10 -0
- data/test/support/test_helper.rb +207 -0
- data/test/support/tut.h +1234 -0
- data/test/support/tut_reporter.h +256 -0
- data/test/support/valgrind.h +2539 -0
- metadata +1078 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
/*
|
2
|
+
* Phusion Passenger - http://www.modrails.com/
|
3
|
+
* Copyright (c) 2009 Phusion
|
4
|
+
*
|
5
|
+
* "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
|
6
|
+
*
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
12
|
+
* furnished to do so, subject to the following conditions:
|
13
|
+
*
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
15
|
+
* all copies or substantial portions of the Software.
|
16
|
+
*
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
* THE SOFTWARE.
|
24
|
+
*/
|
25
|
+
#ifndef _PASSENGER_VERSION_H_
|
26
|
+
#define _PASSENGER_VERSION_H_
|
27
|
+
|
28
|
+
/* Don't forget to update lib/phusion_passenger/constants.rb too. */
|
29
|
+
#define PASSENGER_VERSION "2.2.9"
|
30
|
+
|
31
|
+
#endif /* _PASSENGER_VERSION_H */
|
@@ -0,0 +1,1098 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) Igor Sysoev
|
3
|
+
* Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
|
4
|
+
* Copyright (C) 2008, 2009 Phusion
|
5
|
+
*
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
7
|
+
* modification, are permitted provided that the following conditions
|
8
|
+
* are met:
|
9
|
+
* 1. Redistributions of source code must retain the above copyright
|
10
|
+
* notice, this list of conditions and the following disclaimer.
|
11
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
12
|
+
* notice, this list of conditions and the following disclaimer in the
|
13
|
+
* documentation and/or other materials provided with the distribution.
|
14
|
+
*
|
15
|
+
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
16
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
19
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
20
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
21
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
22
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
23
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
24
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
25
|
+
* SUCH DAMAGE.
|
26
|
+
*/
|
27
|
+
|
28
|
+
#include <ngx_config.h>
|
29
|
+
#include <ngx_core.h>
|
30
|
+
#include <ngx_http.h>
|
31
|
+
|
32
|
+
#include "ngx_http_passenger_module.h"
|
33
|
+
#include "Configuration.h"
|
34
|
+
#include "ContentHandler.h"
|
35
|
+
|
36
|
+
|
37
|
+
static ngx_str_t headers_to_hide[] = {
|
38
|
+
/* NOTE: Do not hide the "Status" header; some broken HTTP clients
|
39
|
+
* expect this header. See http://tinyurl.com/87rezm
|
40
|
+
*/
|
41
|
+
ngx_string("X-Accel-Expires"),
|
42
|
+
ngx_string("X-Accel-Redirect"),
|
43
|
+
ngx_string("X-Accel-Limit-Rate"),
|
44
|
+
ngx_string("X-Accel-Buffer"),
|
45
|
+
ngx_null_string
|
46
|
+
};
|
47
|
+
|
48
|
+
passenger_main_conf_t passenger_main_conf;
|
49
|
+
|
50
|
+
#if NGINX_VERSION_NUM >= 7000
|
51
|
+
static ngx_path_init_t ngx_http_proxy_temp_path = {
|
52
|
+
ngx_string(NGX_HTTP_PROXY_TEMP_PATH), { 1, 2, 0 }
|
53
|
+
};
|
54
|
+
#endif
|
55
|
+
|
56
|
+
|
57
|
+
void *
|
58
|
+
passenger_create_main_conf(ngx_conf_t *cf)
|
59
|
+
{
|
60
|
+
passenger_main_conf_t *conf;
|
61
|
+
|
62
|
+
conf = ngx_pcalloc(cf->pool, sizeof(passenger_main_conf_t));
|
63
|
+
if (conf == NULL) {
|
64
|
+
return NGX_CONF_ERROR;
|
65
|
+
}
|
66
|
+
|
67
|
+
conf->log_level = (ngx_uint_t) NGX_CONF_UNSET;
|
68
|
+
conf->max_pool_size = (ngx_uint_t) NGX_CONF_UNSET;
|
69
|
+
conf->max_instances_per_app = (ngx_uint_t) NGX_CONF_UNSET;
|
70
|
+
conf->pool_idle_time = (ngx_uint_t) NGX_CONF_UNSET;
|
71
|
+
conf->user_switching = NGX_CONF_UNSET;
|
72
|
+
conf->default_user.data = NULL;
|
73
|
+
conf->default_user.len = 0;
|
74
|
+
|
75
|
+
return conf;
|
76
|
+
}
|
77
|
+
|
78
|
+
char *
|
79
|
+
passenger_init_main_conf(ngx_conf_t *cf, void *conf_pointer)
|
80
|
+
{
|
81
|
+
passenger_main_conf_t *conf;
|
82
|
+
|
83
|
+
conf = &passenger_main_conf;
|
84
|
+
*conf = *((passenger_main_conf_t *) conf_pointer);
|
85
|
+
|
86
|
+
if (conf->ruby.len == 0) {
|
87
|
+
conf->ruby.data = (u_char *) "ruby";
|
88
|
+
conf->ruby.len = sizeof("ruby") - 1;
|
89
|
+
}
|
90
|
+
|
91
|
+
if (conf->log_level == (ngx_uint_t) NGX_CONF_UNSET) {
|
92
|
+
conf->log_level = 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
if (conf->max_pool_size == (ngx_uint_t) NGX_CONF_UNSET) {
|
96
|
+
conf->max_pool_size = 6;
|
97
|
+
}
|
98
|
+
|
99
|
+
if (conf->max_instances_per_app == (ngx_uint_t) NGX_CONF_UNSET) {
|
100
|
+
conf->max_instances_per_app = 0;
|
101
|
+
}
|
102
|
+
|
103
|
+
if (conf->pool_idle_time == (ngx_uint_t) NGX_CONF_UNSET) {
|
104
|
+
conf->pool_idle_time = 300;
|
105
|
+
}
|
106
|
+
|
107
|
+
if (conf->user_switching == NGX_CONF_UNSET) {
|
108
|
+
conf->user_switching = 1;
|
109
|
+
}
|
110
|
+
|
111
|
+
if (conf->default_user.len == 0) {
|
112
|
+
conf->default_user.len = sizeof("nobody") - 1;
|
113
|
+
conf->default_user.data = (u_char *) "nobody";
|
114
|
+
}
|
115
|
+
|
116
|
+
return NGX_CONF_OK;
|
117
|
+
}
|
118
|
+
|
119
|
+
void *
|
120
|
+
passenger_create_loc_conf(ngx_conf_t *cf)
|
121
|
+
{
|
122
|
+
passenger_loc_conf_t *conf;
|
123
|
+
ngx_keyval_t *kv;
|
124
|
+
|
125
|
+
conf = ngx_pcalloc(cf->pool, sizeof(passenger_loc_conf_t));
|
126
|
+
if (conf == NULL) {
|
127
|
+
return NGX_CONF_ERROR;
|
128
|
+
}
|
129
|
+
|
130
|
+
/*
|
131
|
+
* set by ngx_pcalloc():
|
132
|
+
*
|
133
|
+
* conf->upstream.bufs.num = 0;
|
134
|
+
* conf->upstream.next_upstream = 0;
|
135
|
+
* conf->upstream.temp_path = NULL;
|
136
|
+
* conf->upstream.hide_headers_hash = { NULL, 0 };
|
137
|
+
* conf->upstream.hide_headers = NULL;
|
138
|
+
* conf->upstream.pass_headers = NULL;
|
139
|
+
* conf->upstream.schema = { 0, NULL };
|
140
|
+
* conf->upstream.uri = { 0, NULL };
|
141
|
+
* conf->upstream.location = NULL;
|
142
|
+
* conf->upstream.store_lengths = NULL;
|
143
|
+
* conf->upstream.store_values = NULL;
|
144
|
+
*
|
145
|
+
* conf->index.len = 0;
|
146
|
+
* conf->index.data = NULL;
|
147
|
+
*/
|
148
|
+
|
149
|
+
conf->enabled = NGX_CONF_UNSET;
|
150
|
+
conf->use_global_queue = NGX_CONF_UNSET;
|
151
|
+
conf->environment.data = NULL;
|
152
|
+
conf->environment.len = 0;
|
153
|
+
conf->spawn_method.data = NULL;
|
154
|
+
conf->spawn_method.len = 0;
|
155
|
+
conf->base_uris = NGX_CONF_UNSET_PTR;
|
156
|
+
conf->framework_spawner_idle_time = NGX_CONF_UNSET;
|
157
|
+
conf->app_spawner_idle_time = NGX_CONF_UNSET;
|
158
|
+
|
159
|
+
conf->upstream.store = NGX_CONF_UNSET;
|
160
|
+
conf->upstream.store_access = NGX_CONF_UNSET_UINT;
|
161
|
+
conf->upstream.buffering = NGX_CONF_UNSET;
|
162
|
+
conf->upstream.ignore_client_abort = NGX_CONF_UNSET;
|
163
|
+
|
164
|
+
conf->upstream.connect_timeout = NGX_CONF_UNSET_MSEC;
|
165
|
+
conf->upstream.send_timeout = NGX_CONF_UNSET_MSEC;
|
166
|
+
conf->upstream.read_timeout = NGX_CONF_UNSET_MSEC;
|
167
|
+
|
168
|
+
conf->upstream.send_lowat = NGX_CONF_UNSET_SIZE;
|
169
|
+
conf->upstream.buffer_size = NGX_CONF_UNSET_SIZE;
|
170
|
+
|
171
|
+
conf->upstream.busy_buffers_size_conf = NGX_CONF_UNSET_SIZE;
|
172
|
+
conf->upstream.max_temp_file_size_conf = NGX_CONF_UNSET_SIZE;
|
173
|
+
conf->upstream.temp_file_write_size_conf = NGX_CONF_UNSET_SIZE;
|
174
|
+
|
175
|
+
conf->upstream.pass_request_headers = NGX_CONF_UNSET;
|
176
|
+
conf->upstream.pass_request_body = NGX_CONF_UNSET;
|
177
|
+
|
178
|
+
conf->upstream.intercept_errors = NGX_CONF_UNSET;
|
179
|
+
|
180
|
+
conf->upstream.cyclic_temp_file = 0;
|
181
|
+
|
182
|
+
#define DEFINE_VAR_TO_PASS(header_name, var_name) \
|
183
|
+
kv = ngx_array_push(conf->vars_source); \
|
184
|
+
kv->key.data = (u_char *) header_name; \
|
185
|
+
kv->key.len = strlen(header_name) + 1; \
|
186
|
+
kv->value.data = (u_char *) var_name; \
|
187
|
+
kv->value.len = strlen(var_name) + 1
|
188
|
+
|
189
|
+
conf->vars_source = ngx_array_create(cf->pool, 4, sizeof(ngx_keyval_t));
|
190
|
+
if (conf->vars_source == NULL) {
|
191
|
+
return NGX_CONF_ERROR;
|
192
|
+
}
|
193
|
+
|
194
|
+
DEFINE_VAR_TO_PASS("SCGI", "1");
|
195
|
+
DEFINE_VAR_TO_PASS("QUERY_STRING", "$query_string");
|
196
|
+
DEFINE_VAR_TO_PASS("REQUEST_METHOD", "$request_method");
|
197
|
+
DEFINE_VAR_TO_PASS("REQUEST_URI", "$uri$is_args$args");
|
198
|
+
DEFINE_VAR_TO_PASS("SERVER_PROTOCOL", "$server_protocol");
|
199
|
+
DEFINE_VAR_TO_PASS("SERVER_SOFTWARE", "nginx/$nginx_version");
|
200
|
+
DEFINE_VAR_TO_PASS("REMOTE_ADDR", "$remote_addr");
|
201
|
+
DEFINE_VAR_TO_PASS("REMOTE_PORT", "$remote_port");
|
202
|
+
DEFINE_VAR_TO_PASS("SERVER_ADDR", "$server_addr");
|
203
|
+
DEFINE_VAR_TO_PASS("SERVER_PORT", "$server_port");
|
204
|
+
DEFINE_VAR_TO_PASS("SERVER_NAME", "$server_name");
|
205
|
+
|
206
|
+
return conf;
|
207
|
+
}
|
208
|
+
|
209
|
+
char *
|
210
|
+
passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
|
211
|
+
{
|
212
|
+
passenger_loc_conf_t *prev = parent;
|
213
|
+
passenger_loc_conf_t *conf = child;
|
214
|
+
|
215
|
+
u_char *p;
|
216
|
+
size_t size;
|
217
|
+
uintptr_t *code;
|
218
|
+
ngx_str_t *header;
|
219
|
+
ngx_uint_t i, j;
|
220
|
+
ngx_array_t hide_headers;
|
221
|
+
ngx_str_t *prev_base_uris, *base_uri;
|
222
|
+
ngx_keyval_t *src;
|
223
|
+
ngx_hash_key_t *hk;
|
224
|
+
ngx_hash_init_t hash;
|
225
|
+
ngx_http_script_compile_t sc;
|
226
|
+
ngx_http_script_copy_code_t *copy;
|
227
|
+
#if NGINX_VERSION_NUM < 7000
|
228
|
+
u_char *temp_path;
|
229
|
+
#endif
|
230
|
+
|
231
|
+
ngx_conf_merge_value(conf->enabled, prev->enabled, 0);
|
232
|
+
ngx_conf_merge_value(conf->use_global_queue, prev->use_global_queue, 0);
|
233
|
+
ngx_conf_merge_str_value(conf->environment, prev->environment, "production");
|
234
|
+
ngx_conf_merge_str_value(conf->spawn_method, prev->spawn_method, "smart-lv2");
|
235
|
+
ngx_conf_merge_value(conf->framework_spawner_idle_time, prev->framework_spawner_idle_time, (ngx_int_t) -1);
|
236
|
+
ngx_conf_merge_value(conf->app_spawner_idle_time, prev->app_spawner_idle_time, (ngx_int_t) -1);
|
237
|
+
|
238
|
+
if (prev->base_uris != NGX_CONF_UNSET_PTR) {
|
239
|
+
if (conf->base_uris == NGX_CONF_UNSET_PTR) {
|
240
|
+
conf->base_uris = ngx_array_create(cf->pool, 4, sizeof(ngx_str_t));
|
241
|
+
if (conf->base_uris == NULL) {
|
242
|
+
return NGX_CONF_ERROR;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
prev_base_uris = (ngx_str_t *) prev->base_uris->elts;
|
247
|
+
for (i = 0; i < prev->base_uris->nelts; i++) {
|
248
|
+
base_uri = (ngx_str_t *) ngx_array_push(conf->base_uris);
|
249
|
+
if (base_uri == NULL) {
|
250
|
+
return NGX_CONF_ERROR;
|
251
|
+
}
|
252
|
+
*base_uri = prev_base_uris[i];
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
|
257
|
+
if (conf->upstream.store != 0) {
|
258
|
+
ngx_conf_merge_value(conf->upstream.store,
|
259
|
+
prev->upstream.store, 0);
|
260
|
+
|
261
|
+
if (conf->upstream.store_lengths == NULL) {
|
262
|
+
conf->upstream.store_lengths = prev->upstream.store_lengths;
|
263
|
+
conf->upstream.store_values = prev->upstream.store_values;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
ngx_conf_merge_uint_value(conf->upstream.store_access,
|
268
|
+
prev->upstream.store_access, 0600);
|
269
|
+
|
270
|
+
ngx_conf_merge_value(conf->upstream.buffering,
|
271
|
+
prev->upstream.buffering, 1);
|
272
|
+
|
273
|
+
ngx_conf_merge_value(conf->upstream.ignore_client_abort,
|
274
|
+
prev->upstream.ignore_client_abort, 0);
|
275
|
+
|
276
|
+
ngx_conf_merge_msec_value(conf->upstream.connect_timeout,
|
277
|
+
prev->upstream.connect_timeout, 600000);
|
278
|
+
|
279
|
+
ngx_conf_merge_msec_value(conf->upstream.send_timeout,
|
280
|
+
prev->upstream.send_timeout, 600000);
|
281
|
+
|
282
|
+
ngx_conf_merge_msec_value(conf->upstream.read_timeout,
|
283
|
+
prev->upstream.read_timeout, 600000);
|
284
|
+
|
285
|
+
ngx_conf_merge_size_value(conf->upstream.send_lowat,
|
286
|
+
prev->upstream.send_lowat, 0);
|
287
|
+
|
288
|
+
ngx_conf_merge_size_value(conf->upstream.buffer_size,
|
289
|
+
prev->upstream.buffer_size,
|
290
|
+
(size_t) ngx_pagesize);
|
291
|
+
|
292
|
+
|
293
|
+
ngx_conf_merge_bufs_value(conf->upstream.bufs, prev->upstream.bufs,
|
294
|
+
8, ngx_pagesize);
|
295
|
+
|
296
|
+
if (conf->upstream.bufs.num < 2) {
|
297
|
+
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
298
|
+
"there must be at least 2 \"scgi_buffers\"");
|
299
|
+
return NGX_CONF_ERROR;
|
300
|
+
}
|
301
|
+
|
302
|
+
|
303
|
+
size = conf->upstream.buffer_size;
|
304
|
+
if (size < conf->upstream.bufs.size) {
|
305
|
+
size = conf->upstream.bufs.size;
|
306
|
+
}
|
307
|
+
|
308
|
+
|
309
|
+
ngx_conf_merge_size_value(conf->upstream.busy_buffers_size_conf,
|
310
|
+
prev->upstream.busy_buffers_size_conf,
|
311
|
+
NGX_CONF_UNSET_SIZE);
|
312
|
+
|
313
|
+
if (conf->upstream.busy_buffers_size_conf == NGX_CONF_UNSET_SIZE) {
|
314
|
+
conf->upstream.busy_buffers_size = 2 * size;
|
315
|
+
} else {
|
316
|
+
conf->upstream.busy_buffers_size =
|
317
|
+
conf->upstream.busy_buffers_size_conf;
|
318
|
+
}
|
319
|
+
|
320
|
+
if (conf->upstream.busy_buffers_size < size) {
|
321
|
+
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
322
|
+
"\"scgi_busy_buffers_size\" must be equal or bigger than "
|
323
|
+
"maximum of the value of \"scgi_buffer_size\" and "
|
324
|
+
"one of the \"scgi_buffers\"");
|
325
|
+
|
326
|
+
return NGX_CONF_ERROR;
|
327
|
+
}
|
328
|
+
|
329
|
+
if (conf->upstream.busy_buffers_size
|
330
|
+
> (conf->upstream.bufs.num - 1) * conf->upstream.bufs.size)
|
331
|
+
{
|
332
|
+
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
333
|
+
"\"scgi_busy_buffers_size\" must be less than "
|
334
|
+
"the size of all \"scgi_buffers\" minus one buffer");
|
335
|
+
|
336
|
+
return NGX_CONF_ERROR;
|
337
|
+
}
|
338
|
+
|
339
|
+
|
340
|
+
ngx_conf_merge_size_value(conf->upstream.temp_file_write_size_conf,
|
341
|
+
prev->upstream.temp_file_write_size_conf,
|
342
|
+
NGX_CONF_UNSET_SIZE);
|
343
|
+
|
344
|
+
if (conf->upstream.temp_file_write_size_conf == NGX_CONF_UNSET_SIZE) {
|
345
|
+
conf->upstream.temp_file_write_size = 2 * size;
|
346
|
+
} else {
|
347
|
+
conf->upstream.temp_file_write_size =
|
348
|
+
conf->upstream.temp_file_write_size_conf;
|
349
|
+
}
|
350
|
+
|
351
|
+
if (conf->upstream.temp_file_write_size < size) {
|
352
|
+
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
353
|
+
"\"scgi_temp_file_write_size\" must be equal or bigger than "
|
354
|
+
"maximum of the value of \"scgi_buffer_size\" and "
|
355
|
+
"one of the \"scgi_buffers\"");
|
356
|
+
|
357
|
+
return NGX_CONF_ERROR;
|
358
|
+
}
|
359
|
+
|
360
|
+
|
361
|
+
ngx_conf_merge_size_value(conf->upstream.max_temp_file_size_conf,
|
362
|
+
prev->upstream.max_temp_file_size_conf,
|
363
|
+
NGX_CONF_UNSET_SIZE);
|
364
|
+
|
365
|
+
if (conf->upstream.max_temp_file_size_conf == NGX_CONF_UNSET_SIZE) {
|
366
|
+
conf->upstream.max_temp_file_size = 1024 * 1024 * 1024;
|
367
|
+
} else {
|
368
|
+
conf->upstream.max_temp_file_size =
|
369
|
+
conf->upstream.max_temp_file_size_conf;
|
370
|
+
}
|
371
|
+
|
372
|
+
if (conf->upstream.max_temp_file_size != 0
|
373
|
+
&& conf->upstream.max_temp_file_size < size)
|
374
|
+
{
|
375
|
+
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
376
|
+
"\"scgi_max_temp_file_size\" must be equal to zero to disable "
|
377
|
+
"the temporary files usage or must be equal or bigger than "
|
378
|
+
"maximum of the value of \"scgi_buffer_size\" and "
|
379
|
+
"one of the \"scgi_buffers\"");
|
380
|
+
|
381
|
+
return NGX_CONF_ERROR;
|
382
|
+
}
|
383
|
+
|
384
|
+
|
385
|
+
ngx_conf_merge_bitmask_value(conf->upstream.next_upstream,
|
386
|
+
prev->upstream.next_upstream,
|
387
|
+
(NGX_CONF_BITMASK_SET
|
388
|
+
|NGX_HTTP_UPSTREAM_FT_ERROR
|
389
|
+
|NGX_HTTP_UPSTREAM_FT_TIMEOUT));
|
390
|
+
|
391
|
+
if (conf->upstream.next_upstream & NGX_HTTP_UPSTREAM_FT_OFF) {
|
392
|
+
conf->upstream.next_upstream = NGX_CONF_BITMASK_SET
|
393
|
+
|NGX_HTTP_UPSTREAM_FT_OFF;
|
394
|
+
}
|
395
|
+
|
396
|
+
#if NGINX_VERSION_NUM < 7000
|
397
|
+
temp_path = ngx_palloc(cf->pool, NGX_MAX_PATH);
|
398
|
+
ngx_memzero(temp_path, NGX_MAX_PATH);
|
399
|
+
ngx_snprintf(temp_path, NGX_MAX_PATH, "%s/webserver_private", passenger_temp_dir);
|
400
|
+
ngx_conf_merge_path_value(conf->upstream.temp_path,
|
401
|
+
prev->upstream.temp_path,
|
402
|
+
temp_path, 1, 2, 0,
|
403
|
+
ngx_garbage_collector_temp_handler, cf);
|
404
|
+
conf->upstream.temp_path->name.len = ngx_strlen(conf->upstream.temp_path->name.data);
|
405
|
+
#else
|
406
|
+
ngx_conf_merge_path_value(cf,
|
407
|
+
&conf->upstream.temp_path,
|
408
|
+
prev->upstream.temp_path,
|
409
|
+
&ngx_http_proxy_temp_path);
|
410
|
+
#endif
|
411
|
+
|
412
|
+
ngx_conf_merge_value(conf->upstream.pass_request_headers,
|
413
|
+
prev->upstream.pass_request_headers, 1);
|
414
|
+
ngx_conf_merge_value(conf->upstream.pass_request_body,
|
415
|
+
prev->upstream.pass_request_body, 1);
|
416
|
+
|
417
|
+
ngx_conf_merge_value(conf->upstream.intercept_errors,
|
418
|
+
prev->upstream.intercept_errors, 0);
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
ngx_conf_merge_str_value(conf->index, prev->index, "");
|
423
|
+
|
424
|
+
if (conf->upstream.hide_headers == NULL
|
425
|
+
&& conf->upstream.pass_headers == NULL)
|
426
|
+
{
|
427
|
+
conf->upstream.hide_headers = prev->upstream.hide_headers;
|
428
|
+
conf->upstream.pass_headers = prev->upstream.pass_headers;
|
429
|
+
conf->upstream.hide_headers_hash = prev->upstream.hide_headers_hash;
|
430
|
+
|
431
|
+
if (conf->upstream.hide_headers_hash.buckets) {
|
432
|
+
goto peers;
|
433
|
+
}
|
434
|
+
|
435
|
+
} else {
|
436
|
+
if (conf->upstream.hide_headers == NULL) {
|
437
|
+
conf->upstream.hide_headers = prev->upstream.hide_headers;
|
438
|
+
}
|
439
|
+
|
440
|
+
if (conf->upstream.pass_headers == NULL) {
|
441
|
+
conf->upstream.pass_headers = prev->upstream.pass_headers;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
|
445
|
+
if (ngx_array_init(&hide_headers, cf->temp_pool, 4, sizeof(ngx_hash_key_t))
|
446
|
+
!= NGX_OK)
|
447
|
+
{
|
448
|
+
return NGX_CONF_ERROR;
|
449
|
+
}
|
450
|
+
|
451
|
+
for (header = headers_to_hide; header->len; header++) {
|
452
|
+
hk = ngx_array_push(&hide_headers);
|
453
|
+
if (hk == NULL) {
|
454
|
+
return NGX_CONF_ERROR;
|
455
|
+
}
|
456
|
+
|
457
|
+
hk->key = *header;
|
458
|
+
hk->key_hash = ngx_hash_key_lc(header->data, header->len);
|
459
|
+
hk->value = (void *) 1;
|
460
|
+
}
|
461
|
+
|
462
|
+
if (conf->upstream.hide_headers) {
|
463
|
+
|
464
|
+
header = conf->upstream.hide_headers->elts;
|
465
|
+
|
466
|
+
for (i = 0; i < conf->upstream.hide_headers->nelts; i++) {
|
467
|
+
|
468
|
+
hk = hide_headers.elts;
|
469
|
+
|
470
|
+
for (j = 0; j < hide_headers.nelts; j++) {
|
471
|
+
if (ngx_strcasecmp(header[i].data, hk[j].key.data) == 0) {
|
472
|
+
goto exist;
|
473
|
+
}
|
474
|
+
}
|
475
|
+
|
476
|
+
hk = ngx_array_push(&hide_headers);
|
477
|
+
if (hk == NULL) {
|
478
|
+
return NGX_CONF_ERROR;
|
479
|
+
}
|
480
|
+
|
481
|
+
hk->key = header[i];
|
482
|
+
hk->key_hash = ngx_hash_key_lc(header[i].data, header[i].len);
|
483
|
+
hk->value = (void *) 1;
|
484
|
+
|
485
|
+
exist:
|
486
|
+
|
487
|
+
continue;
|
488
|
+
}
|
489
|
+
}
|
490
|
+
|
491
|
+
if (conf->upstream.pass_headers) {
|
492
|
+
|
493
|
+
hk = hide_headers.elts;
|
494
|
+
header = conf->upstream.pass_headers->elts;
|
495
|
+
|
496
|
+
for (i = 0; i < conf->upstream.pass_headers->nelts; i++) {
|
497
|
+
|
498
|
+
for (j = 0; j < hide_headers.nelts; j++) {
|
499
|
+
|
500
|
+
if (hk[j].key.data == NULL) {
|
501
|
+
continue;
|
502
|
+
}
|
503
|
+
|
504
|
+
if (ngx_strcasecmp(header[i].data, hk[j].key.data) == 0) {
|
505
|
+
hk[j].key.data = NULL;
|
506
|
+
break;
|
507
|
+
}
|
508
|
+
}
|
509
|
+
}
|
510
|
+
}
|
511
|
+
|
512
|
+
hash.hash = &conf->upstream.hide_headers_hash;
|
513
|
+
hash.key = ngx_hash_key_lc;
|
514
|
+
hash.max_size = 512;
|
515
|
+
hash.bucket_size = ngx_align(64, ngx_cacheline_size);
|
516
|
+
hash.name = "passenger_hide_headers_hash";
|
517
|
+
hash.pool = cf->pool;
|
518
|
+
hash.temp_pool = NULL;
|
519
|
+
|
520
|
+
if (ngx_hash_init(&hash, hide_headers.elts, hide_headers.nelts) != NGX_OK) {
|
521
|
+
return NGX_CONF_ERROR;
|
522
|
+
}
|
523
|
+
|
524
|
+
peers:
|
525
|
+
|
526
|
+
if (conf->upstream.upstream == NULL) {
|
527
|
+
conf->upstream.upstream = prev->upstream.upstream;
|
528
|
+
#if NGINX_VERSION_NUM < 7000
|
529
|
+
conf->upstream.schema = prev->upstream.schema;
|
530
|
+
#endif
|
531
|
+
}
|
532
|
+
|
533
|
+
if (conf->vars_source == NULL) {
|
534
|
+
conf->flushes = prev->flushes;
|
535
|
+
conf->vars_len = prev->vars_len;
|
536
|
+
conf->vars = prev->vars;
|
537
|
+
conf->vars_source = prev->vars_source;
|
538
|
+
|
539
|
+
if (conf->vars_source == NULL) {
|
540
|
+
return NGX_CONF_OK;
|
541
|
+
}
|
542
|
+
}
|
543
|
+
|
544
|
+
conf->vars_len = ngx_array_create(cf->pool, 64, 1);
|
545
|
+
if (conf->vars_len == NULL) {
|
546
|
+
return NGX_CONF_ERROR;
|
547
|
+
}
|
548
|
+
|
549
|
+
conf->vars = ngx_array_create(cf->pool, 512, 1);
|
550
|
+
if (conf->vars == NULL) {
|
551
|
+
return NGX_CONF_ERROR;
|
552
|
+
}
|
553
|
+
|
554
|
+
src = conf->vars_source->elts;
|
555
|
+
for (i = 0; i < conf->vars_source->nelts; i++) {
|
556
|
+
|
557
|
+
if (ngx_http_script_variables_count(&src[i].value) == 0) {
|
558
|
+
copy = ngx_array_push_n(conf->vars_len,
|
559
|
+
sizeof(ngx_http_script_copy_code_t));
|
560
|
+
if (copy == NULL) {
|
561
|
+
return NGX_CONF_ERROR;
|
562
|
+
}
|
563
|
+
|
564
|
+
copy->code = (ngx_http_script_code_pt)
|
565
|
+
ngx_http_script_copy_len_code;
|
566
|
+
copy->len = src[i].key.len;
|
567
|
+
|
568
|
+
|
569
|
+
copy = ngx_array_push_n(conf->vars_len,
|
570
|
+
sizeof(ngx_http_script_copy_code_t));
|
571
|
+
if (copy == NULL) {
|
572
|
+
return NGX_CONF_ERROR;
|
573
|
+
}
|
574
|
+
|
575
|
+
copy->code = (ngx_http_script_code_pt)
|
576
|
+
ngx_http_script_copy_len_code;
|
577
|
+
copy->len = src[i].value.len;
|
578
|
+
|
579
|
+
|
580
|
+
size = (sizeof(ngx_http_script_copy_code_t)
|
581
|
+
+ src[i].key.len + src[i].value.len
|
582
|
+
+ sizeof(uintptr_t) - 1)
|
583
|
+
& ~(sizeof(uintptr_t) - 1);
|
584
|
+
|
585
|
+
copy = ngx_array_push_n(conf->vars, size);
|
586
|
+
if (copy == NULL) {
|
587
|
+
return NGX_CONF_ERROR;
|
588
|
+
}
|
589
|
+
|
590
|
+
copy->code = ngx_http_script_copy_code;
|
591
|
+
copy->len = src[i].key.len + src[i].value.len;
|
592
|
+
|
593
|
+
p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t);
|
594
|
+
|
595
|
+
p = ngx_cpymem(p, src[i].key.data, src[i].key.len);
|
596
|
+
ngx_memcpy(p, src[i].value.data, src[i].value.len);
|
597
|
+
|
598
|
+
} else {
|
599
|
+
copy = ngx_array_push_n(conf->vars_len,
|
600
|
+
sizeof(ngx_http_script_copy_code_t));
|
601
|
+
if (copy == NULL) {
|
602
|
+
return NGX_CONF_ERROR;
|
603
|
+
}
|
604
|
+
|
605
|
+
copy->code = (ngx_http_script_code_pt)
|
606
|
+
ngx_http_script_copy_len_code;
|
607
|
+
copy->len = src[i].key.len;
|
608
|
+
|
609
|
+
|
610
|
+
size = (sizeof(ngx_http_script_copy_code_t)
|
611
|
+
+ src[i].key.len + sizeof(uintptr_t) - 1)
|
612
|
+
& ~(sizeof(uintptr_t) - 1);
|
613
|
+
|
614
|
+
copy = ngx_array_push_n(conf->vars, size);
|
615
|
+
if (copy == NULL) {
|
616
|
+
return NGX_CONF_ERROR;
|
617
|
+
}
|
618
|
+
|
619
|
+
copy->code = ngx_http_script_copy_code;
|
620
|
+
copy->len = src[i].key.len;
|
621
|
+
|
622
|
+
p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t);
|
623
|
+
ngx_memcpy(p, src[i].key.data, src[i].key.len);
|
624
|
+
|
625
|
+
|
626
|
+
ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));
|
627
|
+
|
628
|
+
sc.cf = cf;
|
629
|
+
sc.source = &src[i].value;
|
630
|
+
sc.flushes = &conf->flushes;
|
631
|
+
sc.lengths = &conf->vars_len;
|
632
|
+
sc.values = &conf->vars;
|
633
|
+
|
634
|
+
if (ngx_http_script_compile(&sc) != NGX_OK) {
|
635
|
+
return NGX_CONF_ERROR;
|
636
|
+
}
|
637
|
+
}
|
638
|
+
|
639
|
+
code = ngx_array_push_n(conf->vars_len, sizeof(uintptr_t));
|
640
|
+
if (code == NULL) {
|
641
|
+
return NGX_CONF_ERROR;
|
642
|
+
}
|
643
|
+
|
644
|
+
*code = (uintptr_t) NULL;
|
645
|
+
|
646
|
+
|
647
|
+
code = ngx_array_push_n(conf->vars, sizeof(uintptr_t));
|
648
|
+
if (code == NULL) {
|
649
|
+
return NGX_CONF_ERROR;
|
650
|
+
}
|
651
|
+
|
652
|
+
*code = (uintptr_t) NULL;
|
653
|
+
}
|
654
|
+
|
655
|
+
code = ngx_array_push_n(conf->vars_len, sizeof(uintptr_t));
|
656
|
+
if (code == NULL) {
|
657
|
+
return NGX_CONF_ERROR;
|
658
|
+
}
|
659
|
+
|
660
|
+
*code = (uintptr_t) NULL;
|
661
|
+
|
662
|
+
return NGX_CONF_OK;
|
663
|
+
}
|
664
|
+
|
665
|
+
static char *
|
666
|
+
passenger_enabled(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
667
|
+
{
|
668
|
+
passenger_loc_conf_t *lcf = conf;
|
669
|
+
|
670
|
+
ngx_url_t u;
|
671
|
+
ngx_http_core_loc_conf_t *clcf;
|
672
|
+
ngx_str_t *value;
|
673
|
+
|
674
|
+
value = cf->args->elts;
|
675
|
+
if (ngx_strcasecmp(value[1].data, (u_char *) "on") == 0) {
|
676
|
+
#if NGINX_VERSION_NUM < 7000
|
677
|
+
if (lcf->upstream.schema.len) {
|
678
|
+
return "is duplicate";
|
679
|
+
}
|
680
|
+
#endif
|
681
|
+
|
682
|
+
lcf->enabled = 1;
|
683
|
+
|
684
|
+
ngx_memzero(&u, sizeof(ngx_url_t));
|
685
|
+
u.url.data = (u_char *) passenger_helper_server_socket;
|
686
|
+
u.url.len = strlen(passenger_helper_server_socket);
|
687
|
+
u.no_resolve = 1;
|
688
|
+
|
689
|
+
lcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);
|
690
|
+
if (lcf->upstream.upstream == NULL) {
|
691
|
+
return NGX_CONF_ERROR;
|
692
|
+
}
|
693
|
+
|
694
|
+
#if NGINX_VERSION_NUM < 7000
|
695
|
+
lcf->upstream.schema = passenger_schema_string;
|
696
|
+
#endif
|
697
|
+
|
698
|
+
clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
|
699
|
+
clcf->handler = passenger_content_handler;
|
700
|
+
|
701
|
+
if (clcf->name.data != NULL
|
702
|
+
&& clcf->name.data[clcf->name.len - 1] == '/') {
|
703
|
+
clcf->auto_redirect = 1;
|
704
|
+
}
|
705
|
+
} else {
|
706
|
+
lcf->enabled = 0;
|
707
|
+
}
|
708
|
+
|
709
|
+
return NGX_CONF_OK;
|
710
|
+
}
|
711
|
+
|
712
|
+
#if 0
|
713
|
+
static char *
|
714
|
+
ngx_http_scgi_lowat_check(ngx_conf_t *cf, void *post, void *data)
|
715
|
+
{
|
716
|
+
#if (NGX_FREEBSD)
|
717
|
+
ssize_t *np = data;
|
718
|
+
|
719
|
+
if ((u_long) *np >= ngx_freebsd_net_inet_tcp_sendspace) {
|
720
|
+
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
721
|
+
"\"scgi_send_lowat\" must be less than %d "
|
722
|
+
"(sysctl net.inet.tcp.sendspace)",
|
723
|
+
ngx_freebsd_net_inet_tcp_sendspace);
|
724
|
+
|
725
|
+
return NGX_CONF_ERROR;
|
726
|
+
}
|
727
|
+
|
728
|
+
#elif !(NGX_HAVE_SO_SNDLOWAT)
|
729
|
+
ssize_t *np = data;
|
730
|
+
|
731
|
+
ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
|
732
|
+
"\"scgi_send_lowat\" is not supported, ignored");
|
733
|
+
|
734
|
+
*np = 0;
|
735
|
+
|
736
|
+
#endif
|
737
|
+
|
738
|
+
return NGX_CONF_OK;
|
739
|
+
}
|
740
|
+
|
741
|
+
static char *
|
742
|
+
ngx_http_scgi_store(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
743
|
+
{
|
744
|
+
passenger_loc_conf_t *slcf = conf;
|
745
|
+
|
746
|
+
ngx_str_t *value;
|
747
|
+
ngx_http_script_compile_t sc;
|
748
|
+
|
749
|
+
if (slcf->upstream.store != NGX_CONF_UNSET || slcf->upstream.store_lengths)
|
750
|
+
{
|
751
|
+
return "is duplicate";
|
752
|
+
}
|
753
|
+
|
754
|
+
value = cf->args->elts;
|
755
|
+
|
756
|
+
if (ngx_strcmp(value[1].data, "on") == 0) {
|
757
|
+
slcf->upstream.store = 1;
|
758
|
+
return NGX_CONF_OK;
|
759
|
+
}
|
760
|
+
|
761
|
+
if (ngx_strcmp(value[1].data, "off") == 0) {
|
762
|
+
slcf->upstream.store = 0;
|
763
|
+
return NGX_CONF_OK;
|
764
|
+
}
|
765
|
+
|
766
|
+
/* include the terminating '\0' into script */
|
767
|
+
value[1].len++;
|
768
|
+
|
769
|
+
ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));
|
770
|
+
|
771
|
+
sc.cf = cf;
|
772
|
+
sc.source = &value[1];
|
773
|
+
sc.lengths = &slcf->upstream.store_lengths;
|
774
|
+
sc.values = &slcf->upstream.store_values;
|
775
|
+
sc.variables = ngx_http_script_variables_count(&value[1]);
|
776
|
+
sc.complete_lengths = 1;
|
777
|
+
sc.complete_values = 1;
|
778
|
+
|
779
|
+
if (ngx_http_script_compile(&sc) != NGX_OK) {
|
780
|
+
return NGX_CONF_ERROR;
|
781
|
+
}
|
782
|
+
|
783
|
+
return NGX_CONF_OK;
|
784
|
+
}
|
785
|
+
|
786
|
+
char *
|
787
|
+
ngx_scgi_set_keyval_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
788
|
+
{
|
789
|
+
/*
|
790
|
+
* Like ngx_conf_set_keyval_slot but keeps the \0 at the end of
|
791
|
+
* the strings.
|
792
|
+
*/
|
793
|
+
|
794
|
+
char *p = conf;
|
795
|
+
|
796
|
+
ngx_str_t *value;
|
797
|
+
ngx_array_t **a;
|
798
|
+
ngx_keyval_t *kv;
|
799
|
+
ngx_conf_post_t *post;
|
800
|
+
|
801
|
+
a = (ngx_array_t **) (p + cmd->offset);
|
802
|
+
|
803
|
+
if (*a == NULL) {
|
804
|
+
*a = ngx_array_create(cf->pool, 4, sizeof(ngx_keyval_t));
|
805
|
+
if (*a == NULL) {
|
806
|
+
return NGX_CONF_ERROR;
|
807
|
+
}
|
808
|
+
}
|
809
|
+
|
810
|
+
kv = ngx_array_push(*a);
|
811
|
+
if (kv == NULL) {
|
812
|
+
return NGX_CONF_ERROR;
|
813
|
+
}
|
814
|
+
|
815
|
+
value = cf->args->elts;
|
816
|
+
|
817
|
+
/* strings are null terminated */
|
818
|
+
value[1].len += 1;
|
819
|
+
value[2].len += 1;
|
820
|
+
|
821
|
+
kv->key = value[1];
|
822
|
+
kv->value = value[2];
|
823
|
+
|
824
|
+
if (cmd->post) {
|
825
|
+
post = cmd->post;
|
826
|
+
return post->post_handler(cf, post, kv);
|
827
|
+
}
|
828
|
+
|
829
|
+
return NGX_CONF_OK;
|
830
|
+
}
|
831
|
+
|
832
|
+
|
833
|
+
static ngx_conf_post_t ngx_http_scgi_lowat_post =
|
834
|
+
{ ngx_http_scgi_lowat_check };
|
835
|
+
|
836
|
+
#endif /* 0 */
|
837
|
+
|
838
|
+
const ngx_command_t passenger_commands[] = {
|
839
|
+
|
840
|
+
{ ngx_string("passenger_enabled"),
|
841
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
842
|
+
passenger_enabled,
|
843
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
844
|
+
0,
|
845
|
+
NULL },
|
846
|
+
|
847
|
+
{ ngx_string("passenger_root"),
|
848
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
849
|
+
ngx_conf_set_str_slot,
|
850
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
851
|
+
offsetof(passenger_main_conf_t, root_dir),
|
852
|
+
NULL },
|
853
|
+
|
854
|
+
{ ngx_string("passenger_ruby"),
|
855
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
856
|
+
ngx_conf_set_str_slot,
|
857
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
858
|
+
offsetof(passenger_main_conf_t, ruby),
|
859
|
+
NULL },
|
860
|
+
|
861
|
+
{ ngx_string("passenger_log_level"),
|
862
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
863
|
+
ngx_conf_set_num_slot,
|
864
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
865
|
+
offsetof(passenger_main_conf_t, log_level),
|
866
|
+
NULL },
|
867
|
+
|
868
|
+
{ ngx_string("passenger_use_global_queue"),
|
869
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
870
|
+
ngx_conf_set_flag_slot,
|
871
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
872
|
+
offsetof(passenger_loc_conf_t, use_global_queue),
|
873
|
+
NULL },
|
874
|
+
|
875
|
+
{ ngx_string("passenger_max_pool_size"),
|
876
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
877
|
+
ngx_conf_set_num_slot,
|
878
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
879
|
+
offsetof(passenger_main_conf_t, max_pool_size),
|
880
|
+
NULL },
|
881
|
+
|
882
|
+
{ ngx_string("passenger_max_instances_per_app"),
|
883
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
884
|
+
ngx_conf_set_num_slot,
|
885
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
886
|
+
offsetof(passenger_main_conf_t, max_instances_per_app),
|
887
|
+
NULL },
|
888
|
+
|
889
|
+
{ ngx_string("passenger_pool_idle_time"),
|
890
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
891
|
+
ngx_conf_set_num_slot,
|
892
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
893
|
+
offsetof(passenger_main_conf_t, pool_idle_time),
|
894
|
+
NULL },
|
895
|
+
|
896
|
+
{ ngx_string("passenger_base_uri"),
|
897
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
898
|
+
ngx_conf_set_str_array_slot,
|
899
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
900
|
+
offsetof(passenger_loc_conf_t, base_uris),
|
901
|
+
NULL },
|
902
|
+
|
903
|
+
{ ngx_string("passenger_user_switching"),
|
904
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
905
|
+
ngx_conf_set_flag_slot,
|
906
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
907
|
+
offsetof(passenger_main_conf_t, user_switching),
|
908
|
+
NULL },
|
909
|
+
|
910
|
+
{ ngx_string("passenger_default_user"),
|
911
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
912
|
+
ngx_conf_set_str_slot,
|
913
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
914
|
+
offsetof(passenger_main_conf_t, default_user),
|
915
|
+
NULL },
|
916
|
+
|
917
|
+
{ ngx_string("rails_env"),
|
918
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
919
|
+
ngx_conf_set_str_slot,
|
920
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
921
|
+
offsetof(passenger_loc_conf_t, environment),
|
922
|
+
NULL },
|
923
|
+
|
924
|
+
{ ngx_string("rails_spawn_method"),
|
925
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
926
|
+
ngx_conf_set_str_slot,
|
927
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
928
|
+
offsetof(passenger_loc_conf_t, spawn_method),
|
929
|
+
NULL },
|
930
|
+
|
931
|
+
{ ngx_string("rails_framework_spawner_idle_time"),
|
932
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
933
|
+
ngx_conf_set_num_slot,
|
934
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
935
|
+
offsetof(passenger_loc_conf_t, framework_spawner_idle_time),
|
936
|
+
NULL },
|
937
|
+
|
938
|
+
{ ngx_string("rails_app_spawner_idle_time"),
|
939
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
940
|
+
ngx_conf_set_num_slot,
|
941
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
942
|
+
offsetof(passenger_loc_conf_t, app_spawner_idle_time),
|
943
|
+
NULL },
|
944
|
+
|
945
|
+
{ ngx_string("rack_env"),
|
946
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
947
|
+
ngx_conf_set_str_slot,
|
948
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
949
|
+
offsetof(passenger_loc_conf_t, environment),
|
950
|
+
NULL },
|
951
|
+
|
952
|
+
/*
|
953
|
+
|
954
|
+
{ ngx_string("scgi_index"),
|
955
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
956
|
+
ngx_conf_set_str_slot,
|
957
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
958
|
+
offsetof(passenger_loc_conf_t, index),
|
959
|
+
NULL },
|
960
|
+
|
961
|
+
{ ngx_string("scgi_store"),
|
962
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
963
|
+
ngx_http_scgi_store,
|
964
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
965
|
+
0,
|
966
|
+
NULL },
|
967
|
+
|
968
|
+
{ ngx_string("scgi_store_access"),
|
969
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE123,
|
970
|
+
ngx_conf_set_access_slot,
|
971
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
972
|
+
offsetof(passenger_loc_conf_t, upstream.store_access),
|
973
|
+
NULL },
|
974
|
+
|
975
|
+
{ ngx_string("scgi_ignore_client_abort"),
|
976
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
977
|
+
ngx_conf_set_flag_slot,
|
978
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
979
|
+
offsetof(passenger_loc_conf_t, upstream.ignore_client_abort),
|
980
|
+
NULL },
|
981
|
+
|
982
|
+
{ ngx_string("scgi_connect_timeout"),
|
983
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
984
|
+
ngx_conf_set_msec_slot,
|
985
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
986
|
+
offsetof(passenger_loc_conf_t, upstream.connect_timeout),
|
987
|
+
NULL },
|
988
|
+
|
989
|
+
{ ngx_string("scgi_send_timeout"),
|
990
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
991
|
+
ngx_conf_set_msec_slot,
|
992
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
993
|
+
offsetof(passenger_loc_conf_t, upstream.send_timeout),
|
994
|
+
NULL },
|
995
|
+
|
996
|
+
{ ngx_string("scgi_send_lowat"),
|
997
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
998
|
+
ngx_conf_set_size_slot,
|
999
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1000
|
+
offsetof(passenger_loc_conf_t, upstream.send_lowat),
|
1001
|
+
&ngx_http_scgi_lowat_post },
|
1002
|
+
|
1003
|
+
{ ngx_string("scgi_buffer_size"),
|
1004
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
1005
|
+
ngx_conf_set_size_slot,
|
1006
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1007
|
+
offsetof(passenger_loc_conf_t, upstream.buffer_size),
|
1008
|
+
NULL },
|
1009
|
+
|
1010
|
+
{ ngx_string("scgi_pass_request_headers"),
|
1011
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
1012
|
+
ngx_conf_set_flag_slot,
|
1013
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1014
|
+
offsetof(passenger_loc_conf_t, upstream.pass_request_headers),
|
1015
|
+
NULL },
|
1016
|
+
|
1017
|
+
{ ngx_string("scgi_pass_request_body"),
|
1018
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
1019
|
+
ngx_conf_set_flag_slot,
|
1020
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1021
|
+
offsetof(passenger_loc_conf_t, upstream.pass_request_body),
|
1022
|
+
NULL },
|
1023
|
+
|
1024
|
+
{ ngx_string("scgi_intercept_errors"),
|
1025
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
1026
|
+
ngx_conf_set_flag_slot,
|
1027
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1028
|
+
offsetof(passenger_loc_conf_t, upstream.intercept_errors),
|
1029
|
+
NULL },
|
1030
|
+
|
1031
|
+
{ ngx_string("scgi_read_timeout"),
|
1032
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
1033
|
+
ngx_conf_set_msec_slot,
|
1034
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1035
|
+
offsetof(passenger_loc_conf_t, upstream.read_timeout),
|
1036
|
+
NULL },
|
1037
|
+
|
1038
|
+
{ ngx_string("scgi_buffers"),
|
1039
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2,
|
1040
|
+
ngx_conf_set_bufs_slot,
|
1041
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1042
|
+
offsetof(passenger_loc_conf_t, upstream.bufs),
|
1043
|
+
NULL },
|
1044
|
+
|
1045
|
+
{ ngx_string("scgi_busy_buffers_size"),
|
1046
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
1047
|
+
ngx_conf_set_size_slot,
|
1048
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1049
|
+
offsetof(passenger_loc_conf_t, upstream.busy_buffers_size_conf),
|
1050
|
+
NULL },
|
1051
|
+
|
1052
|
+
{ ngx_string("scgi_temp_path"),
|
1053
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1234,
|
1054
|
+
ngx_conf_set_path_slot,
|
1055
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1056
|
+
offsetof(passenger_loc_conf_t, upstream.temp_path),
|
1057
|
+
(void *) ngx_garbage_collector_temp_handler },
|
1058
|
+
|
1059
|
+
{ ngx_string("scgi_max_temp_file_size"),
|
1060
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
1061
|
+
ngx_conf_set_size_slot,
|
1062
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1063
|
+
offsetof(passenger_loc_conf_t, upstream.max_temp_file_size_conf),
|
1064
|
+
NULL },
|
1065
|
+
|
1066
|
+
{ ngx_string("scgi_temp_file_write_size"),
|
1067
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
1068
|
+
ngx_conf_set_size_slot,
|
1069
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1070
|
+
offsetof(passenger_loc_conf_t, upstream.temp_file_write_size_conf),
|
1071
|
+
NULL },
|
1072
|
+
|
1073
|
+
{ ngx_string("scgi_var"),
|
1074
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2,
|
1075
|
+
ngx_scgi_set_keyval_slot,
|
1076
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1077
|
+
offsetof(passenger_loc_conf_t, vars_source),
|
1078
|
+
NULL },
|
1079
|
+
|
1080
|
+
{ ngx_string("scgi_pass_header"),
|
1081
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
1082
|
+
ngx_conf_set_str_array_slot,
|
1083
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1084
|
+
offsetof(passenger_loc_conf_t, upstream.pass_headers),
|
1085
|
+
NULL },
|
1086
|
+
|
1087
|
+
{ ngx_string("scgi_hide_header"),
|
1088
|
+
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
1089
|
+
ngx_conf_set_str_array_slot,
|
1090
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
1091
|
+
offsetof(passenger_loc_conf_t, upstream.hide_headers),
|
1092
|
+
NULL },
|
1093
|
+
|
1094
|
+
*/
|
1095
|
+
|
1096
|
+
ngx_null_command
|
1097
|
+
};
|
1098
|
+
|