passenger 5.3.4 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +69 -0
- data/CONTRIBUTORS +1 -0
- data/README.md +2 -1
- data/Rakefile +0 -5
- data/build/agent.rb +6 -3
- data/build/cxx_tests.rb +28 -19
- data/build/integration_tests.rb +6 -2
- data/build/misc.rb +2 -1
- data/build/packaging.rb +2 -0
- data/build/support/cplusplus.rb +2 -2
- data/build/support/cxx_dependency_map.rb +2651 -2189
- data/dev/colorize-logs +272 -0
- data/dev/show-latest-crashlog-dir +27 -0
- data/resources/templates/standalone/http.erb +2 -0
- data/resources/templates/standalone/server.erb +1 -0
- data/src/agent/AgentMain.cpp +4 -0
- data/src/agent/Core/AdminPanelConnector.h +6 -6
- data/src/agent/Core/ApiServer.h +4 -4
- data/src/agent/Core/ApplicationPool/BasicProcessInfo.h +2 -2
- data/src/agent/Core/ApplicationPool/Context.h +5 -1
- data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +2 -2
- data/src/agent/Core/ApplicationPool/Group/LifetimeAndBasics.cpp +5 -0
- data/src/agent/Core/ApplicationPool/Group/Miscellaneous.cpp +2 -1
- data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +3 -3
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +13 -20
- data/src/agent/Core/ApplicationPool/Group.h +4 -2
- data/src/agent/Core/ApplicationPool/Implementation.cpp +5 -5
- data/src/agent/Core/ApplicationPool/Options.h +42 -38
- data/src/agent/Core/ApplicationPool/Pool/GroupUtils.cpp +2 -1
- data/src/agent/Core/ApplicationPool/Pool.h +4 -4
- data/src/agent/Core/ApplicationPool/Process.h +13 -15
- data/src/agent/Core/ApplicationPool/Socket.h +5 -5
- data/src/agent/Core/ApplicationPool/TestSession.h +3 -3
- data/src/agent/Core/Config.h +50 -10
- data/src/agent/Core/ConfigChange.cpp +13 -1
- data/src/agent/Core/Controller/Config.h +41 -17
- data/src/agent/Core/Controller/ForwardResponse.cpp +4 -0
- data/src/agent/Core/Controller/InitRequest.cpp +14 -8
- data/src/agent/Core/Controller/InitializationAndShutdown.cpp +5 -0
- data/src/agent/Core/Controller/SendRequest.cpp +9 -9
- data/src/agent/Core/Controller/TurboCaching.h +2 -2
- data/src/agent/Core/Controller.h +7 -5
- data/src/agent/Core/CoreMain.cpp +204 -60
- data/src/agent/Core/OptionParser.h +20 -3
- data/src/agent/Core/ResponseCache.h +3 -3
- data/src/agent/Core/SecurityUpdateChecker.h +4 -2
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Config.h +3 -2
- data/src/agent/Core/SpawningKit/Context.h +8 -2
- data/src/agent/Core/SpawningKit/DirectSpawner.h +4 -4
- data/src/agent/Core/SpawningKit/DummySpawner.h +3 -3
- data/src/agent/Core/SpawningKit/ErrorRenderer.h +1 -1
- data/src/agent/Core/SpawningKit/Exceptions.h +21 -14
- data/src/agent/Core/SpawningKit/Factory.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/BackgroundIOCapturer.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Perform.h +14 -2
- data/src/agent/Core/SpawningKit/Handshake/Prepare.h +3 -3
- data/src/agent/Core/SpawningKit/Handshake/WorkDir.h +1 -1
- data/src/agent/Core/SpawningKit/Journey.h +4 -5
- data/src/agent/Core/SpawningKit/PipeWatcher.h +1 -1
- data/src/agent/Core/SpawningKit/README.md +34 -17
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Result.h +20 -8
- data/src/agent/Core/SpawningKit/SmartSpawner.h +7 -7
- data/src/agent/Core/SpawningKit/Spawner.h +25 -8
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +17 -7
- data/src/agent/Core/TelemetryCollector.h +681 -0
- data/src/agent/ExecHelper/ExecHelperMain.cpp +1 -1
- data/src/agent/FileReadHelper/FileReadHelperMain.cpp +198 -0
- data/src/agent/README.md +1 -1
- data/src/agent/Shared/ApiAccountUtils.h +1 -1
- data/src/agent/Shared/ApiServerUtils.h +3 -3
- data/src/agent/Shared/ApplicationPoolApiKey.h +2 -2
- data/src/agent/Shared/Fundamentals/AbortHandler.cpp +324 -98
- data/src/agent/Shared/Fundamentals/AbortHandler.h +31 -4
- data/src/agent/Shared/Fundamentals/Initialization.cpp +4 -5
- data/src/agent/Shared/Fundamentals/Initialization.h +9 -1
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +1 -1
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +4 -3
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +3 -3
- data/src/agent/Watchdog/ApiServer.h +3 -3
- data/src/agent/Watchdog/Config.h +24 -5
- data/src/agent/Watchdog/CoreWatcher.cpp +2 -2
- data/src/agent/Watchdog/WatchdogMain.cpp +97 -28
- data/src/apache2_module/Config.cpp +14 -14
- data/src/apache2_module/Config.h +8 -16
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +510 -481
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp.cxxcodebuilder +39 -17
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +5 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +69 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp.cxxcodebuilder +31 -1
- data/src/apache2_module/ConfigGeneral/Common.h +45 -0
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +17 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp.cxxcodebuilder +16 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +19 -5
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp.cxxcodebuilder +26 -9
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +19 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +10 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +14 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp.cxxcodebuilder +11 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +36 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h.cxxcodebuilder +34 -1
- data/src/apache2_module/DirectoryMapper.h +36 -37
- data/src/apache2_module/Hooks.cpp +27 -8
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +20 -0
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +48 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h.cxxcodebuilder +36 -1
- data/src/cxx_supportlib/{Utils → Algorithms}/Hasher.cpp +2 -2
- data/src/cxx_supportlib/{Utils → Algorithms}/Hasher.h +4 -4
- data/src/cxx_supportlib/AppLocalConfigFileUtils.h +148 -0
- data/src/cxx_supportlib/AppTypeDetector/CBindings.cpp +147 -0
- data/src/cxx_supportlib/AppTypeDetector/CBindings.h +75 -0
- data/src/cxx_supportlib/{AppTypes.h → AppTypeDetector/Detector.h} +92 -131
- data/src/cxx_supportlib/ConfigKit/README.md +90 -2
- data/src/cxx_supportlib/ConfigKit/Schema.h +60 -15
- data/src/cxx_supportlib/ConfigKit/Store.h +129 -5
- data/src/cxx_supportlib/Constants.h +1 -1
- data/src/cxx_supportlib/{Utils → DataStructures}/HashMap.h +4 -4
- data/src/cxx_supportlib/DataStructures/HashedStaticString.h +5 -5
- data/src/cxx_supportlib/DataStructures/LString.h +3 -3
- data/src/cxx_supportlib/{Utils → DataStructures}/StringMap.h +36 -36
- data/src/cxx_supportlib/FileTools/FileManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.cpp +2 -2
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.cpp +1 -1
- data/src/cxx_supportlib/Hooks.h +2 -2
- data/src/cxx_supportlib/{Utils → IOTools}/BufferedIO.h +5 -5
- data/src/cxx_supportlib/{Utils → IOTools}/IOUtils.cpp +4 -3
- data/src/cxx_supportlib/{Utils → IOTools}/IOUtils.h +3 -3
- data/src/cxx_supportlib/{Utils → IOTools}/MessageIO.h +7 -7
- data/src/cxx_supportlib/{MessageReadersWriters.h → IOTools/MessageSerialization.h} +5 -5
- data/src/cxx_supportlib/InstanceDirectory.h +4 -4
- data/src/cxx_supportlib/Integrations/LibevJsonUtils.h +3 -3
- data/src/cxx_supportlib/{Utils → JsonTools}/JsonUtils.h +5 -5
- data/src/cxx_supportlib/LoggingKit/Context.h +2 -2
- data/src/cxx_supportlib/LoggingKit/Implementation.cpp +3 -3
- data/src/cxx_supportlib/MemoryKit/mbuf.cpp +2 -2
- data/src/cxx_supportlib/ProcessManagement/Ruby.cpp +3 -3
- data/src/cxx_supportlib/ProcessManagement/Ruby.h +7 -2
- data/src/cxx_supportlib/ProcessManagement/Spawn.cpp +19 -12
- data/src/cxx_supportlib/ProcessManagement/Spawn.h +21 -2
- data/src/cxx_supportlib/ProcessManagement/Utils.h +10 -0
- data/src/cxx_supportlib/RandomGenerator.h +2 -2
- data/src/cxx_supportlib/ResourceLocator.h +1 -1
- data/src/cxx_supportlib/{Crypto.cpp → SecurityKit/Crypto.cpp} +4 -4
- data/src/cxx_supportlib/{Crypto.h → SecurityKit/Crypto.h} +4 -4
- data/src/cxx_supportlib/{Utils → SecurityKit}/MemZeroGuard.h +0 -0
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +2 -2
- data/src/cxx_supportlib/ServerKit/Channel.h +1 -1
- data/src/cxx_supportlib/ServerKit/ClientRef.h +17 -7
- data/src/cxx_supportlib/ServerKit/Context.h +2 -2
- data/src/cxx_supportlib/ServerKit/FileBufferedChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +3 -3
- data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +2 -2
- data/src/cxx_supportlib/ServerKit/HttpRequestRef.h +17 -7
- data/src/cxx_supportlib/ServerKit/HttpServer.h +16 -10
- data/src/cxx_supportlib/ServerKit/Server.h +3 -4
- data/src/cxx_supportlib/{Utils → StrIntTools}/DateParsing.h +5 -5
- data/src/cxx_supportlib/{Utils → StrIntTools}/StrIntUtils.cpp +3 -3
- data/src/cxx_supportlib/{Utils → StrIntTools}/StrIntUtils.h +0 -0
- data/src/cxx_supportlib/{Utils → StrIntTools}/StrIntUtilsNoStrictAliasing.cpp +12 -12
- data/src/cxx_supportlib/{Utils → StrIntTools}/StringScanning.h +5 -5
- data/src/cxx_supportlib/{Utils → StrIntTools}/Template.h +30 -5
- data/src/cxx_supportlib/SystemTools/ContainerHelpers.h +88 -0
- data/src/cxx_supportlib/{Utils → SystemTools}/ProcessMetricsCollector.h +15 -12
- data/src/cxx_supportlib/{Utils → SystemTools}/SystemMetricsCollector.h +3 -3
- data/src/cxx_supportlib/{Utils → SystemTools}/SystemTime.cpp +1 -1
- data/src/cxx_supportlib/{Utils → SystemTools}/SystemTime.h +0 -0
- data/src/cxx_supportlib/SystemTools/UserDatabase.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.hpp +3 -3
- data/src/cxx_supportlib/Utils/Curl.h +2 -2
- data/src/cxx_supportlib/Utils/FileChangeChecker.h +2 -2
- data/src/cxx_supportlib/Utils/MessagePassing.h +1 -1
- data/src/cxx_supportlib/Utils/SpeedMeter.h +2 -2
- data/src/cxx_supportlib/Utils/Timer.h +2 -2
- data/src/cxx_supportlib/Utils/VariantMap.h +3 -3
- data/src/cxx_supportlib/Utils.cpp +2 -2
- data/src/cxx_supportlib/WatchdogLauncher.h +3 -3
- data/src/cxx_supportlib/WebSocketCommandReverseServer.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.cpp +85 -0
- data/src/cxx_supportlib/{Utils/MemoryBarrier.h → WrapperRegistry/CBindings.h} +30 -27
- data/src/cxx_supportlib/WrapperRegistry/Entry.h +112 -0
- data/src/cxx_supportlib/WrapperRegistry/README.md +37 -0
- data/src/cxx_supportlib/WrapperRegistry/Registry.h +309 -0
- data/src/cxx_supportlib/vendor-modified/psg_sysqueue.h +3 -0
- data/src/helper-scripts/download_binaries/extconf.rb +6 -2
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +32 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +12 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +36 -0
- data/src/nginx_module/Configuration.c +23 -3
- data/src/nginx_module/ContentHandler.c +331 -32
- data/src/nginx_module/ContentHandler.h +8 -3
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +10 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +27 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +3 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +7 -0
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +11 -0
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +23 -0
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +8 -0
- data/src/nginx_module/config +2 -1
- data/src/nginx_module/ngx_http_passenger_module.c +9 -3
- data/src/nginx_module/ngx_http_passenger_module.h +10 -3
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +19 -0
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +19 -16
- data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +4 -4
- data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +6 -2
- data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +6 -2
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/message_channel.rb +2 -2
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +7 -3
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +29 -0
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +20 -19
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +22 -4
- data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +33 -13
- data/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +22 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +4 -1
- data/src/ruby_supportlib/phusion_passenger.rb +7 -5
- data/src/schema_printer/SchemaPrinterMain.cpp +2 -0
- metadata +40 -89
- data/.editorconfig +0 -134
- data/CODE_OF_CONDUCT.md +0 -52
- data/dev/boost-patches/0001-Patch-boost-thread-so-that-oxt-thread-can-use-it.patch +0 -48
- data/dev/boost-patches/0002-Make-boost-thread_interrupted-derive-from-oxt-tracab.patch +0 -33
- data/dev/boost-patches/0003-Disable-a-Clang-pragma-to-prevent-warnings-on-OS-X.patch +0 -25
- data/dev/ci/README.md +0 -134
- data/dev/ci/lib/functions.sh +0 -129
- data/dev/ci/lib/set-container-envvars.sh +0 -53
- data/dev/ci/lib/setup-container.sh +0 -46
- data/dev/ci/run-tests-natively +0 -24
- data/dev/ci/run-tests-with-docker +0 -42
- data/dev/ci/scripts/debug-console-wrapper.sh +0 -29
- data/dev/ci/scripts/docker-entrypoint-stage2.sh +0 -17
- data/dev/ci/scripts/docker-entrypoint.sh +0 -17
- data/dev/ci/scripts/inituidgid +0 -17
- data/dev/ci/scripts/run-tests-natively-stage2.sh +0 -17
- data/dev/ci/scripts/setup-host-natively.sh +0 -11
- data/dev/ci/setup-host +0 -56
- data/dev/ci/tests/apache2/run +0 -6
- data/dev/ci/tests/apache2/setup +0 -4
- data/dev/ci/tests/binaries/Jenkinsfile +0 -105
- data/dev/ci/tests/binaries/build-linux +0 -38
- data/dev/ci/tests/binaries/build-macos +0 -40
- data/dev/ci/tests/binaries/prepare-macos +0 -38
- data/dev/ci/tests/binaries/test-linux +0 -45
- data/dev/ci/tests/binaries/test-macos +0 -38
- data/dev/ci/tests/cxx/run +0 -9
- data/dev/ci/tests/cxx/setup +0 -4
- data/dev/ci/tests/debian/Jenkinsfile +0 -89
- data/dev/ci/tests/debian/run +0 -60
- data/dev/ci/tests/nginx/run +0 -5
- data/dev/ci/tests/nginx/setup +0 -4
- data/dev/ci/tests/nginx-dynamic/run +0 -20
- data/dev/ci/tests/nginx-dynamic/setup +0 -4
- data/dev/ci/tests/nodejs/run +0 -4
- data/dev/ci/tests/nodejs/setup +0 -4
- data/dev/ci/tests/rpm/Jenkinsfile +0 -68
- data/dev/ci/tests/rpm/run +0 -63
- data/dev/ci/tests/ruby/run +0 -4
- data/dev/ci/tests/ruby/setup +0 -4
- data/dev/ci/tests/source-packaging/run +0 -4
- data/dev/ci/tests/source-packaging/setup +0 -4
- data/dev/ci/tests/standalone/run +0 -4
- data/dev/ci/tests/standalone/setup +0 -4
- data/dev/configkit-schemas/index.json +0 -1748
- data/dev/configkit-schemas/update_schema_inline_comments.rb +0 -118
- data/dev/rack.test/config.ru +0 -5
- data/dev/rack.test/public/asset.txt +0 -1
- data/dev/vagrant/apache_default_site.conf +0 -35
- data/dev/vagrant/apache_passenger.conf +0 -5
- data/dev/vagrant/apache_passenger.load +0 -1
- data/dev/vagrant/apache_ports.conf +0 -24
- data/dev/vagrant/apache_rack_test.conf +0 -9
- data/dev/vagrant/bashrc +0 -23
- data/dev/vagrant/nginx.conf +0 -39
- data/dev/vagrant/nginx_rakefile +0 -33
- data/dev/vagrant/nginx_start +0 -32
- data/dev/vagrant/provision.sh +0 -117
- data/dev/vagrant/sudoers.conf +0 -5
- data/resources/templates/error_renderer/.editorconfig +0 -19
- data/src/cxx_supportlib/AppTypes.cpp +0 -109
- data/src/cxx_supportlib/vendor-modified/SmallVector.h +0 -653
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2010-
|
3
|
+
* Copyright (c) 2010-2018 Phusion Holding B.V.
|
4
4
|
*
|
5
5
|
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
6
|
* trademarks of Phusion Holding B.V.
|
@@ -38,483 +38,512 @@
|
|
38
38
|
* rake src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp
|
39
39
|
*/
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
"
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
"
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
"
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
"
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
"
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
"
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
"
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
"
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
"
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
"
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
"
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
"
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
"
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
"
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
"
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
"
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
"
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
"
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
"
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
"
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
"
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
"
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
"
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
"
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
"
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
"
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
"
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
"
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
"
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
"
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
"
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
"
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
"
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
"
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
"
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
"
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
"
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
"
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
"
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
"
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
"
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
"
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
"
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
"
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
"
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
"
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
"
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
"
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
"
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
"
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
"
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
"
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
"
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
"
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
"
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
"
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
"
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
"
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
"
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
"
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
"
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
"
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
"
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
"
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
"
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
"
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
"
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
"
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
"
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
"
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
"
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
"
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
"
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
"
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
"
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
"
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
"
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
"
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
"
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
"
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
"
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
"
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
"
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
"
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
"
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
"
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
"
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
"
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
"
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
"
|
41
|
+
#ifdef INTELLISENSE
|
42
|
+
// This include does nothing, but keeps IntelliSense happy.
|
43
|
+
#include <http_config.h>
|
44
|
+
#endif
|
45
|
+
|
46
|
+
namespace Passenger {
|
47
|
+
namespace Apache2Module {
|
48
|
+
|
49
|
+
extern "C" const command_rec passenger_commands[] = {
|
50
|
+
AP_INIT_TAKE1("PassengerAdminPanelAuthType",
|
51
|
+
(Take1Func) cmd_passenger_admin_panel_auth_type,
|
52
|
+
NULL,
|
53
|
+
RSRC_CONF,
|
54
|
+
"The authentication type to use when connecting to the admin panel"),
|
55
|
+
AP_INIT_TAKE1("PassengerAdminPanelPassword",
|
56
|
+
(Take1Func) cmd_passenger_admin_panel_password,
|
57
|
+
NULL,
|
58
|
+
RSRC_CONF,
|
59
|
+
"The password to use when connecting to the admin panel using basic authentication"),
|
60
|
+
AP_INIT_TAKE1("PassengerAdminPanelUrl",
|
61
|
+
(Take1Func) cmd_passenger_admin_panel_url,
|
62
|
+
NULL,
|
63
|
+
RSRC_CONF,
|
64
|
+
"Connect to an admin panel at the given connector URL"),
|
65
|
+
AP_INIT_TAKE1("PassengerAdminPanelUsername",
|
66
|
+
(Take1Func) cmd_passenger_admin_panel_username,
|
67
|
+
NULL,
|
68
|
+
RSRC_CONF,
|
69
|
+
"The username to use when connecting to the admin panel using basic authentication"),
|
70
|
+
AP_INIT_FLAG("PassengerAllowEncodedSlashes",
|
71
|
+
(FlagFunc) cmd_passenger_allow_encoded_slashes,
|
72
|
+
NULL,
|
73
|
+
RSRC_CONF | ACCESS_CONF | OR_OPTIONS,
|
74
|
+
"Whether to support encoded slashes in the URL"),
|
75
|
+
AP_INIT_TAKE1("PassengerAnalyticsLogGroup",
|
76
|
+
(Take1Func) cmd_passenger_analytics_log_group,
|
77
|
+
NULL,
|
78
|
+
RSRC_CONF,
|
79
|
+
"Obsolete option."),
|
80
|
+
AP_INIT_TAKE1("PassengerAnalyticsLogUser",
|
81
|
+
(Take1Func) cmd_passenger_analytics_log_user,
|
82
|
+
NULL,
|
83
|
+
RSRC_CONF,
|
84
|
+
"Obsolete option."),
|
85
|
+
AP_INIT_TAKE1("PassengerAnonymousTelemetryProxy",
|
86
|
+
(Take1Func) cmd_passenger_anonymous_telemetry_proxy,
|
87
|
+
NULL,
|
88
|
+
RSRC_CONF,
|
89
|
+
"Use specified HTTP/SOCKS proxy for Phusion Passenger anonymous telemetry collection."),
|
90
|
+
AP_INIT_TAKE1("PassengerAppEnv",
|
91
|
+
(Take1Func) cmd_passenger_app_env,
|
92
|
+
NULL,
|
93
|
+
RSRC_CONF | ACCESS_CONF,
|
94
|
+
"The environment under which applications are run."),
|
95
|
+
AP_INIT_TAKE1("PassengerAppGroupName",
|
96
|
+
(Take1Func) cmd_passenger_app_group_name,
|
97
|
+
NULL,
|
98
|
+
RSRC_CONF | ACCESS_CONF,
|
99
|
+
"Application process group name."),
|
100
|
+
AP_INIT_TAKE1("PassengerAppLogFile",
|
101
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
102
|
+
NULL,
|
103
|
+
RSRC_CONF | ACCESS_CONF,
|
104
|
+
"Application log file path."),
|
105
|
+
AP_INIT_TAKE1("PassengerAppRoot",
|
106
|
+
(Take1Func) cmd_passenger_app_root,
|
107
|
+
NULL,
|
108
|
+
RSRC_CONF | ACCESS_CONF,
|
109
|
+
"The application's root directory."),
|
110
|
+
AP_INIT_TAKE1("PassengerAppStartCommand",
|
111
|
+
(Take1Func) cmd_passenger_app_start_command,
|
112
|
+
NULL,
|
113
|
+
RSRC_CONF | ACCESS_CONF,
|
114
|
+
"Command string for starting the application."),
|
115
|
+
AP_INIT_TAKE1("PassengerAppType",
|
116
|
+
(Take1Func) cmd_passenger_app_type,
|
117
|
+
NULL,
|
118
|
+
RSRC_CONF | ACCESS_CONF,
|
119
|
+
"Force specific application type."),
|
120
|
+
AP_INIT_TAKE1("PassengerBaseURI",
|
121
|
+
(Take1Func) cmd_passenger_base_uri,
|
122
|
+
NULL,
|
123
|
+
RSRC_CONF | ACCESS_CONF,
|
124
|
+
"Declare the given base URI as belonging to a web application."),
|
125
|
+
AP_INIT_FLAG("PassengerBufferResponse",
|
126
|
+
(FlagFunc) cmd_passenger_buffer_response,
|
127
|
+
NULL,
|
128
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
129
|
+
"Whether to enable extra response buffering inside Apache."),
|
130
|
+
AP_INIT_FLAG("PassengerBufferUpload",
|
131
|
+
(FlagFunc) cmd_passenger_buffer_upload,
|
132
|
+
NULL,
|
133
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
134
|
+
"Whether to buffer file uploads."),
|
135
|
+
AP_INIT_TAKE1("PassengerConcurrencyModel",
|
136
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
137
|
+
NULL,
|
138
|
+
RSRC_CONF | ACCESS_CONF,
|
139
|
+
"The concurrency model that should be used for applications."),
|
140
|
+
AP_INIT_TAKE2("PassengerCtl",
|
141
|
+
(Take2Func) cmd_passenger_ctl,
|
142
|
+
NULL,
|
143
|
+
RSRC_CONF,
|
144
|
+
"Set advanced Phusion Passenger options."),
|
145
|
+
AP_INIT_TAKE1("PassengerDataBufferDir",
|
146
|
+
(Take1Func) cmd_passenger_data_buffer_dir,
|
147
|
+
NULL,
|
148
|
+
RSRC_CONF,
|
149
|
+
"The directory that Phusion Passenger data buffers should be stored into."),
|
150
|
+
AP_INIT_TAKE1("PassengerDebugLogFile",
|
151
|
+
(Take1Func) cmd_passenger_log_file,
|
152
|
+
NULL,
|
153
|
+
RSRC_CONF,
|
154
|
+
"The Phusion Passenger log file."),
|
155
|
+
AP_INIT_FLAG("PassengerDebugger",
|
156
|
+
(FlagFunc) cmd_passenger_enterprise_only,
|
157
|
+
NULL,
|
158
|
+
RSRC_CONF | ACCESS_CONF,
|
159
|
+
"Whether to turn on debugger support"),
|
160
|
+
AP_INIT_TAKE1("PassengerDefaultGroup",
|
161
|
+
(Take1Func) cmd_passenger_default_group,
|
162
|
+
NULL,
|
163
|
+
RSRC_CONF,
|
164
|
+
"The group that Phusion Passenger applications must run as when user switching fails or is disabled."),
|
165
|
+
AP_INIT_TAKE1("PassengerDefaultRuby",
|
166
|
+
(Take1Func) cmd_passenger_default_ruby,
|
167
|
+
NULL,
|
168
|
+
RSRC_CONF,
|
169
|
+
"Phusion Passenger's default Ruby interpreter to use."),
|
170
|
+
AP_INIT_TAKE1("PassengerDefaultUser",
|
171
|
+
(Take1Func) cmd_passenger_default_user,
|
172
|
+
NULL,
|
173
|
+
RSRC_CONF,
|
174
|
+
"The user that Phusion Passenger applications must run as when user switching fails or is disabled."),
|
175
|
+
AP_INIT_FLAG("PassengerDisableAnonymousTelemetry",
|
176
|
+
(FlagFunc) cmd_passenger_disable_anonymous_telemetry,
|
177
|
+
NULL,
|
178
|
+
RSRC_CONF,
|
179
|
+
"Whether to disable Phusion Passenger anonymous telemetry."),
|
180
|
+
AP_INIT_FLAG("PassengerDisableSecurityUpdateCheck",
|
181
|
+
(FlagFunc) cmd_passenger_disable_security_update_check,
|
182
|
+
NULL,
|
183
|
+
RSRC_CONF,
|
184
|
+
"Whether to disable the Phusion Passenger security update check & notification."),
|
185
|
+
AP_INIT_TAKE1("PassengerDumpConfigManifest",
|
186
|
+
(Take1Func) cmd_passenger_dump_config_manifest,
|
187
|
+
NULL,
|
188
|
+
RSRC_CONF,
|
189
|
+
"Dump the Passenger config manifest to the given file, for debugging purposes."),
|
190
|
+
AP_INIT_FLAG("PassengerEnabled",
|
191
|
+
(FlagFunc) cmd_passenger_enabled,
|
192
|
+
NULL,
|
193
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
194
|
+
"Enable or disable Phusion Passenger."),
|
195
|
+
AP_INIT_FLAG("PassengerErrorOverride",
|
196
|
+
(FlagFunc) cmd_passenger_error_override,
|
197
|
+
NULL,
|
198
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
199
|
+
"Allow Apache to handle error response."),
|
200
|
+
AP_INIT_TAKE1("PassengerFileDescriptorLogFile",
|
201
|
+
(Take1Func) cmd_passenger_file_descriptor_log_file,
|
202
|
+
NULL,
|
203
|
+
RSRC_CONF,
|
204
|
+
"The Phusion Passenger file descriptor log file."),
|
205
|
+
AP_INIT_TAKE1("PassengerFlyWith",
|
206
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
207
|
+
NULL,
|
208
|
+
RSRC_CONF,
|
209
|
+
"Use Flying Passenger"),
|
210
|
+
AP_INIT_TAKE1("PassengerForceMaxConcurrentRequestsPerProcess",
|
211
|
+
(Take1Func) cmd_passenger_force_max_concurrent_requests_per_process,
|
212
|
+
NULL,
|
213
|
+
RSRC_CONF | ACCESS_CONF,
|
214
|
+
"Force Passenger to believe that an application process can handle the given number of concurrent requests per process"),
|
215
|
+
AP_INIT_FLAG("PassengerFriendlyErrorPages",
|
216
|
+
(FlagFunc) cmd_passenger_friendly_error_pages,
|
217
|
+
NULL,
|
218
|
+
RSRC_CONF | ACCESS_CONF,
|
219
|
+
"Whether to display friendly error pages when something goes wrong."),
|
220
|
+
AP_INIT_TAKE1("PassengerGroup",
|
221
|
+
(Take1Func) cmd_passenger_group,
|
222
|
+
NULL,
|
223
|
+
RSRC_CONF | ACCESS_CONF,
|
224
|
+
"The group that Ruby applications must run as."),
|
225
|
+
AP_INIT_FLAG("PassengerHighPerformance",
|
226
|
+
(FlagFunc) cmd_passenger_high_performance,
|
227
|
+
NULL,
|
228
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
229
|
+
"Enable or disable Passenger's high performance mode."),
|
230
|
+
AP_INIT_TAKE1("PassengerInstanceRegistryDir",
|
231
|
+
(Take1Func) cmd_passenger_instance_registry_dir,
|
232
|
+
NULL,
|
233
|
+
RSRC_CONF,
|
234
|
+
"The directory to register the Phusion Passenger instance to."),
|
235
|
+
AP_INIT_FLAG("PassengerLoadShellEnvvars",
|
236
|
+
(FlagFunc) cmd_passenger_load_shell_envvars,
|
237
|
+
NULL,
|
238
|
+
RSRC_CONF | ACCESS_CONF,
|
239
|
+
"Whether to load environment variables from the shell before running the application."),
|
240
|
+
AP_INIT_TAKE1("PassengerLogFile",
|
241
|
+
(Take1Func) cmd_passenger_log_file,
|
242
|
+
NULL,
|
243
|
+
RSRC_CONF,
|
244
|
+
"The Phusion Passenger log file."),
|
245
|
+
AP_INIT_TAKE1("PassengerLogLevel",
|
246
|
+
(Take1Func) cmd_passenger_log_level,
|
247
|
+
NULL,
|
248
|
+
RSRC_CONF,
|
249
|
+
"The Phusion Passenger log verbosity."),
|
250
|
+
AP_INIT_TAKE1("PassengerLveMinUid",
|
251
|
+
(Take1Func) cmd_passenger_lve_min_uid,
|
252
|
+
NULL,
|
253
|
+
RSRC_CONF | ACCESS_CONF,
|
254
|
+
"Minimum user ID starting from which entering LVE and CageFS is allowed."),
|
255
|
+
AP_INIT_TAKE1("PassengerMaxInstances",
|
256
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
257
|
+
NULL,
|
258
|
+
RSRC_CONF | ACCESS_CONF,
|
259
|
+
"The maximum number of instances for the current application that Phusion Passenger may spawn."),
|
260
|
+
AP_INIT_TAKE1("PassengerMaxInstancesPerApp",
|
261
|
+
(Take1Func) cmd_passenger_max_instances_per_app,
|
262
|
+
NULL,
|
263
|
+
RSRC_CONF,
|
264
|
+
"The maximum number of simultaneously alive application instances a single application may occupy."),
|
265
|
+
AP_INIT_TAKE1("PassengerMaxPoolSize",
|
266
|
+
(Take1Func) cmd_passenger_max_pool_size,
|
267
|
+
NULL,
|
268
|
+
RSRC_CONF,
|
269
|
+
"The maximum number of simultaneously alive application processes."),
|
270
|
+
AP_INIT_TAKE1("PassengerMaxPreloaderIdleTime",
|
271
|
+
(Take1Func) cmd_passenger_max_preloader_idle_time,
|
272
|
+
NULL,
|
273
|
+
RSRC_CONF | ACCESS_CONF,
|
274
|
+
"The maximum number of seconds that a preloader process may be idle before it is shutdown."),
|
275
|
+
AP_INIT_TAKE1("PassengerMaxRequestQueueSize",
|
276
|
+
(Take1Func) cmd_passenger_max_request_queue_size,
|
277
|
+
NULL,
|
278
|
+
RSRC_CONF | ACCESS_CONF,
|
279
|
+
"The maximum number of queued requests."),
|
280
|
+
AP_INIT_TAKE1("PassengerMaxRequestQueueTime",
|
281
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
282
|
+
NULL,
|
283
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
284
|
+
"The maximum number of seconds that a request may remain in the queue before it is dropped."),
|
285
|
+
AP_INIT_TAKE1("PassengerMaxRequestTime",
|
286
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
287
|
+
NULL,
|
288
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
289
|
+
"The maximum time (in seconds) that the current application may spend on a request."),
|
290
|
+
AP_INIT_TAKE1("PassengerMaxRequests",
|
291
|
+
(Take1Func) cmd_passenger_max_requests,
|
292
|
+
NULL,
|
293
|
+
RSRC_CONF | ACCESS_CONF,
|
294
|
+
"The maximum number of requests that an application instance may process."),
|
295
|
+
AP_INIT_TAKE1("PassengerMemoryLimit",
|
296
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
297
|
+
NULL,
|
298
|
+
RSRC_CONF | ACCESS_CONF,
|
299
|
+
"The maximum amount of memory in MB that an application instance may use."),
|
300
|
+
AP_INIT_TAKE1("PassengerMeteorAppSettings",
|
301
|
+
(Take1Func) cmd_passenger_meteor_app_settings,
|
302
|
+
NULL,
|
303
|
+
RSRC_CONF | ACCESS_CONF,
|
304
|
+
"Settings file for (non-bundled) Meteor apps."),
|
305
|
+
AP_INIT_TAKE1("PassengerMinInstances",
|
306
|
+
(Take1Func) cmd_passenger_min_instances,
|
307
|
+
NULL,
|
308
|
+
RSRC_CONF | ACCESS_CONF,
|
309
|
+
"The minimum number of application instances to keep when cleaning idle instances."),
|
310
|
+
AP_INIT_TAKE1("PassengerMonitorLogFile",
|
311
|
+
(Take1Func) cmd_passenger_monitor_log_file,
|
312
|
+
NULL,
|
313
|
+
RSRC_CONF | ACCESS_CONF,
|
314
|
+
"Log file path to monitor."),
|
315
|
+
AP_INIT_TAKE1("PassengerNodejs",
|
316
|
+
(Take1Func) cmd_passenger_nodejs,
|
317
|
+
NULL,
|
318
|
+
RSRC_CONF | ACCESS_CONF,
|
319
|
+
"The Node.js command to use."),
|
320
|
+
AP_INIT_TAKE1("PassengerPoolIdleTime",
|
321
|
+
(Take1Func) cmd_passenger_pool_idle_time,
|
322
|
+
NULL,
|
323
|
+
RSRC_CONF,
|
324
|
+
"The maximum number of seconds that an application may be idle before it gets terminated."),
|
325
|
+
AP_INIT_TAKE1("PassengerPreStart",
|
326
|
+
(Take1Func) cmd_passenger_pre_start,
|
327
|
+
NULL,
|
328
|
+
RSRC_CONF,
|
329
|
+
"Prestart the given web applications during startup."),
|
330
|
+
AP_INIT_TAKE1("PassengerPython",
|
331
|
+
(Take1Func) cmd_passenger_python,
|
332
|
+
NULL,
|
333
|
+
RSRC_CONF | ACCESS_CONF,
|
334
|
+
"The Python interpreter to use."),
|
335
|
+
AP_INIT_FLAG("PassengerResistDeploymentErrors",
|
336
|
+
(FlagFunc) cmd_passenger_enterprise_only,
|
337
|
+
NULL,
|
338
|
+
RSRC_CONF | ACCESS_CONF,
|
339
|
+
"Whether to turn on deployment error resistance."),
|
340
|
+
AP_INIT_TAKE1("PassengerResponseBufferHighWatermark",
|
341
|
+
(Take1Func) cmd_passenger_response_buffer_high_watermark,
|
342
|
+
NULL,
|
343
|
+
RSRC_CONF,
|
344
|
+
"The maximum size of the Phusion Passenger response buffer."),
|
345
|
+
AP_INIT_TAKE1("PassengerRestartDir",
|
346
|
+
(Take1Func) cmd_passenger_restart_dir,
|
347
|
+
NULL,
|
348
|
+
RSRC_CONF | ACCESS_CONF,
|
349
|
+
"The directory in which Phusion Passenger should look for restart.txt."),
|
350
|
+
AP_INIT_FLAG("PassengerRollingRestarts",
|
351
|
+
(FlagFunc) cmd_passenger_enterprise_only,
|
352
|
+
NULL,
|
353
|
+
RSRC_CONF | ACCESS_CONF,
|
354
|
+
"Whether to turn on rolling restarts."),
|
355
|
+
AP_INIT_TAKE1("PassengerRoot",
|
356
|
+
(Take1Func) cmd_passenger_root,
|
357
|
+
NULL,
|
358
|
+
RSRC_CONF,
|
359
|
+
"The Phusion Passenger root folder."),
|
360
|
+
AP_INIT_TAKE1("PassengerRuby",
|
361
|
+
(Take1Func) cmd_passenger_ruby,
|
362
|
+
NULL,
|
363
|
+
RSRC_CONF | ACCESS_CONF,
|
364
|
+
"The Ruby interpreter to use."),
|
365
|
+
AP_INIT_TAKE1("PassengerSecurityUpdateCheckProxy",
|
366
|
+
(Take1Func) cmd_passenger_security_update_check_proxy,
|
367
|
+
NULL,
|
368
|
+
RSRC_CONF,
|
369
|
+
"Use specified HTTP/SOCKS proxy for the Phusion Passenger security update check."),
|
370
|
+
AP_INIT_FLAG("PassengerShowVersionInHeader",
|
371
|
+
(FlagFunc) cmd_passenger_show_version_in_header,
|
372
|
+
NULL,
|
373
|
+
RSRC_CONF,
|
374
|
+
"Whether to show the Phusion Passenger version number in the X-Powered-By header."),
|
375
|
+
AP_INIT_TAKE1("PassengerSocketBacklog",
|
376
|
+
(Take1Func) cmd_passenger_socket_backlog,
|
377
|
+
NULL,
|
378
|
+
RSRC_CONF,
|
379
|
+
"The Phusion Passenger socket backlog."),
|
380
|
+
AP_INIT_TAKE1("PassengerSpawnMethod",
|
381
|
+
(Take1Func) cmd_passenger_spawn_method,
|
382
|
+
NULL,
|
383
|
+
RSRC_CONF | ACCESS_CONF,
|
384
|
+
"The spawn method to use."),
|
385
|
+
AP_INIT_TAKE1("PassengerStartTimeout",
|
386
|
+
(Take1Func) cmd_passenger_start_timeout,
|
387
|
+
NULL,
|
388
|
+
RSRC_CONF | ACCESS_CONF,
|
389
|
+
"A timeout for application startup."),
|
390
|
+
AP_INIT_TAKE1("PassengerStartupFile",
|
391
|
+
(Take1Func) cmd_passenger_startup_file,
|
392
|
+
NULL,
|
393
|
+
RSRC_CONF | ACCESS_CONF,
|
394
|
+
"Force specific startup file."),
|
395
|
+
AP_INIT_TAKE1("PassengerStatThrottleRate",
|
396
|
+
(Take1Func) cmd_passenger_stat_throttle_rate,
|
397
|
+
NULL,
|
398
|
+
RSRC_CONF,
|
399
|
+
"Limit the number of stat calls to once per given seconds."),
|
400
|
+
AP_INIT_FLAG("PassengerStickySessions",
|
401
|
+
(FlagFunc) cmd_passenger_sticky_sessions,
|
402
|
+
NULL,
|
403
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
404
|
+
"Whether to enable sticky sessions."),
|
405
|
+
AP_INIT_TAKE1("PassengerStickySessionsCookieName",
|
406
|
+
(Take1Func) cmd_passenger_sticky_sessions_cookie_name,
|
407
|
+
NULL,
|
408
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
409
|
+
"The cookie name to use for sticky sessions."),
|
410
|
+
AP_INIT_TAKE1("PassengerThreadCount",
|
411
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
412
|
+
NULL,
|
413
|
+
RSRC_CONF | ACCESS_CONF,
|
414
|
+
"The number of threads that Phusion Passenger should spawn per application."),
|
415
|
+
AP_INIT_FLAG("PassengerTurbocaching",
|
416
|
+
(FlagFunc) cmd_passenger_turbocaching,
|
417
|
+
NULL,
|
418
|
+
RSRC_CONF,
|
419
|
+
"Whether to enable turbocaching in Phusion Passenger."),
|
420
|
+
AP_INIT_FLAG("PassengerUseGlobalQueue",
|
421
|
+
(FlagFunc) cmd_passenger_use_global_queue,
|
422
|
+
NULL,
|
423
|
+
RSRC_CONF | ACCESS_CONF,
|
424
|
+
"Obsolete option."),
|
425
|
+
AP_INIT_TAKE1("PassengerUser",
|
426
|
+
(Take1Func) cmd_passenger_user,
|
427
|
+
NULL,
|
428
|
+
RSRC_CONF | ACCESS_CONF,
|
429
|
+
"The user that Ruby applications must run as."),
|
430
|
+
AP_INIT_FLAG("PassengerUserSwitching",
|
431
|
+
(FlagFunc) cmd_passenger_user_switching,
|
432
|
+
NULL,
|
433
|
+
RSRC_CONF,
|
434
|
+
"Whether to enable user switching support in Phusion Passenger."),
|
435
|
+
AP_INIT_TAKE1("RackBaseURI",
|
436
|
+
(Take1Func) cmd_passenger_base_uri,
|
437
|
+
NULL,
|
438
|
+
RSRC_CONF | ACCESS_CONF,
|
439
|
+
"Declare the given base URI as belonging to a web application."),
|
440
|
+
AP_INIT_TAKE1("RackEnv",
|
441
|
+
(Take1Func) cmd_passenger_app_env,
|
442
|
+
NULL,
|
443
|
+
RSRC_CONF | ACCESS_CONF,
|
444
|
+
"The environment under which applications are run."),
|
445
|
+
AP_INIT_FLAG("RailsAllowModRewrite",
|
446
|
+
(FlagFunc) cmd_rails_allow_mod_rewrite,
|
447
|
+
NULL,
|
448
|
+
RSRC_CONF,
|
449
|
+
"Obsolete option."),
|
450
|
+
AP_INIT_TAKE1("RailsAppSpawnerIdleTime",
|
451
|
+
(Take1Func) cmd_passenger_max_preloader_idle_time,
|
452
|
+
NULL,
|
453
|
+
RSRC_CONF | ACCESS_CONF,
|
454
|
+
"The maximum number of seconds that a preloader process may be idle before it is shutdown."),
|
455
|
+
AP_INIT_TAKE1("RailsBaseURI",
|
456
|
+
(Take1Func) cmd_passenger_base_uri,
|
457
|
+
NULL,
|
458
|
+
RSRC_CONF | ACCESS_CONF,
|
459
|
+
"Declare the given base URI as belonging to a web application."),
|
460
|
+
AP_INIT_TAKE1("RailsDefaultUser",
|
461
|
+
(Take1Func) cmd_passenger_default_user,
|
462
|
+
NULL,
|
463
|
+
RSRC_CONF,
|
464
|
+
"The user that Phusion Passenger applications must run as when user switching fails or is disabled."),
|
465
|
+
AP_INIT_TAKE1("RailsEnv",
|
466
|
+
(Take1Func) cmd_passenger_app_env,
|
467
|
+
NULL,
|
468
|
+
RSRC_CONF | ACCESS_CONF,
|
469
|
+
"The environment under which applications are run."),
|
470
|
+
AP_INIT_TAKE1("RailsFrameworkSpawnerIdleTime",
|
471
|
+
(Take1Func) cmd_rails_framework_spawner_idle_time,
|
472
|
+
NULL,
|
473
|
+
RSRC_CONF,
|
474
|
+
"Obsolete option."),
|
475
|
+
AP_INIT_TAKE1("RailsMaxInstancesPerApp",
|
476
|
+
(Take1Func) cmd_passenger_max_instances_per_app,
|
477
|
+
NULL,
|
478
|
+
RSRC_CONF,
|
479
|
+
"The maximum number of simultaneously alive application instances a single application may occupy."),
|
480
|
+
AP_INIT_TAKE1("RailsMaxPoolSize",
|
481
|
+
(Take1Func) cmd_passenger_max_pool_size,
|
482
|
+
NULL,
|
483
|
+
RSRC_CONF,
|
484
|
+
"The maximum number of simultaneously alive application processes."),
|
485
|
+
AP_INIT_TAKE1("RailsPoolIdleTime",
|
486
|
+
(Take1Func) cmd_passenger_pool_idle_time,
|
487
|
+
NULL,
|
488
|
+
RSRC_CONF,
|
489
|
+
"The maximum number of seconds that an application may be idle before it gets terminated."),
|
490
|
+
AP_INIT_TAKE1("RailsRuby",
|
491
|
+
(Take1Func) cmd_passenger_ruby,
|
492
|
+
NULL,
|
493
|
+
RSRC_CONF | ACCESS_CONF,
|
494
|
+
"The Ruby interpreter to use."),
|
495
|
+
AP_INIT_TAKE1("RailsSpawnMethod",
|
496
|
+
(Take1Func) cmd_passenger_spawn_method,
|
497
|
+
NULL,
|
498
|
+
RSRC_CONF | ACCESS_CONF,
|
499
|
+
"The spawn method to use."),
|
500
|
+
AP_INIT_TAKE1("RailsSpawnServer",
|
501
|
+
(Take1Func) cmd_rails_spawn_server,
|
502
|
+
NULL,
|
503
|
+
RSRC_CONF,
|
504
|
+
"Obsolete option."),
|
505
|
+
AP_INIT_FLAG("RailsUserSwitching",
|
506
|
+
(FlagFunc) cmd_passenger_user_switching,
|
507
|
+
NULL,
|
508
|
+
RSRC_CONF,
|
509
|
+
"Whether to enable user switching support in Phusion Passenger."),
|
510
|
+
AP_INIT_TAKE1("UnionStationFilter",
|
511
|
+
(Take1Func) cmd_union_station_filter,
|
512
|
+
NULL,
|
513
|
+
RSRC_CONF | ACCESS_CONF | OR_OPTIONS,
|
514
|
+
"Obsolete option."),
|
515
|
+
AP_INIT_TAKE1("UnionStationGatewayAddress",
|
516
|
+
(Take1Func) cmd_union_station_gateway_address,
|
517
|
+
NULL,
|
518
|
+
RSRC_CONF,
|
519
|
+
"Obsolete option."),
|
520
|
+
AP_INIT_TAKE1("UnionStationGatewayCert",
|
521
|
+
(Take1Func) cmd_union_station_gateway_cert,
|
522
|
+
NULL,
|
523
|
+
RSRC_CONF,
|
524
|
+
"Obsolete option."),
|
525
|
+
AP_INIT_TAKE1("UnionStationGatewayPort",
|
526
|
+
(Take1Func) cmd_union_station_gateway_port,
|
527
|
+
NULL,
|
528
|
+
RSRC_CONF,
|
529
|
+
"Obsolete option."),
|
530
|
+
AP_INIT_TAKE1("UnionStationKey",
|
531
|
+
(Take1Func) cmd_union_station_key,
|
532
|
+
NULL,
|
533
|
+
RSRC_CONF | ACCESS_CONF,
|
534
|
+
"Obsolete option."),
|
535
|
+
AP_INIT_TAKE1("UnionStationProxyAddress",
|
536
|
+
(Take1Func) cmd_union_station_proxy_address,
|
537
|
+
NULL,
|
538
|
+
RSRC_CONF,
|
539
|
+
"Obsolete option."),
|
540
|
+
AP_INIT_FLAG("UnionStationSupport",
|
541
|
+
(FlagFunc) cmd_union_station_support,
|
542
|
+
NULL,
|
543
|
+
RSRC_CONF | ACCESS_CONF,
|
544
|
+
"Obsolete option."),
|
545
|
+
{ NULL }
|
546
|
+
};
|
547
|
+
|
548
|
+
} // namespace Apache2Module
|
549
|
+
} // namespace Passenger
|