passenger 5.3.5 → 5.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +13 -0
- data/README.md +2 -1
- data/Rakefile +0 -5
- data/build/agent.rb +2 -1
- data/build/cxx_tests.rb +18 -20
- data/build/integration_tests.rb +6 -2
- data/build/support/cxx_dependency_map.rb +2019 -1966
- data/dev/colorize-logs +272 -0
- data/src/agent/Core/AdminPanelConnector.h +3 -3
- data/src/agent/Core/ApiServer.h +4 -4
- data/src/agent/Core/ApplicationPool/BasicProcessInfo.h +2 -2
- data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +2 -2
- data/src/agent/Core/ApplicationPool/Implementation.cpp +5 -5
- data/src/agent/Core/ApplicationPool/Pool.h +4 -4
- data/src/agent/Core/ApplicationPool/Process.h +10 -15
- data/src/agent/Core/ApplicationPool/Socket.h +2 -2
- data/src/agent/Core/ApplicationPool/TestSession.h +3 -3
- data/src/agent/Core/Config.h +4 -2
- data/src/agent/Core/Controller.h +4 -4
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/Controller/SendRequest.cpp +2 -2
- data/src/agent/Core/Controller/TurboCaching.h +2 -2
- data/src/agent/Core/CoreMain.cpp +2 -2
- data/src/agent/Core/OptionParser.h +2 -2
- data/src/agent/Core/ResponseCache.h +3 -3
- data/src/agent/Core/SecurityUpdateChecker.h +2 -2
- data/src/agent/Core/SpawningKit/Config.h +2 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Context.h +1 -1
- data/src/agent/Core/SpawningKit/DirectSpawner.h +3 -3
- 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 +2 -2
- 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 +13 -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/Result.h +20 -8
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/SmartSpawner.h +6 -6
- data/src/agent/Core/SpawningKit/Spawner.h +2 -2
- data/src/agent/Core/TelemetryCollector.h +13 -7
- data/src/agent/ExecHelper/ExecHelperMain.cpp +1 -1
- 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/Initialization.cpp +4 -4
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +1 -1
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +4 -3
- data/src/agent/Watchdog/ApiServer.h +3 -3
- data/src/agent/Watchdog/Config.h +3 -2
- data/src/agent/Watchdog/CoreWatcher.cpp +2 -2
- data/src/agent/Watchdog/WatchdogMain.cpp +93 -27
- data/src/apache2_module/Config.cpp +14 -14
- data/src/apache2_module/Config.h +8 -16
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +505 -491
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp.cxxcodebuilder +39 -17
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +24 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp.cxxcodebuilder +31 -1
- data/src/{cxx_supportlib/Utils/MemoryBarrier.h → apache2_module/ConfigGeneral/Common.h} +17 -25
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +12 -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 +6 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +10 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +7 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp.cxxcodebuilder +11 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +23 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h.cxxcodebuilder +34 -1
- data/src/apache2_module/Hooks.cpp +3 -3
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +24 -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/AppTypeDetector/Detector.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Schema.h +2 -2
- data/src/cxx_supportlib/ConfigKit/Store.h +1 -1
- 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 +2 -2
- 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/Spawn.cpp +5 -5
- data/src/cxx_supportlib/ProcessManagement/Utils.h +10 -0
- data/src/cxx_supportlib/RandomGenerator.h +2 -2
- 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/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/HttpServer.h +16 -10
- data/src/cxx_supportlib/ServerKit/Server.h +3 -3
- 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 +2 -2
- 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 +34 -0
- data/src/cxx_supportlib/{Utils → SystemTools}/ProcessMetricsCollector.h +6 -6
- 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.cpp +2 -2
- 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/WatchdogLauncher.h +3 -3
- data/src/cxx_supportlib/WebSocketCommandReverseServer.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Registry.h +1 -1
- data/src/cxx_supportlib/vendor-modified/psg_sysqueue.h +3 -0
- data/src/ruby_supportlib/phusion_passenger.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +11 -11
- data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +4 -4
- 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/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/schema_printer/SchemaPrinterMain.cpp +2 -0
- metadata +28 -86
- 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-dynamic/run +0 -20
- data/dev/ci/tests/nginx-dynamic/setup +0 -4
- data/dev/ci/tests/nginx/run +0 -5
- data/dev/ci/tests/nginx/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 -1850
- 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
@@ -40,12 +40,6 @@
|
|
40
40
|
#include <ap_config.h>
|
41
41
|
#undef AP_HAVE_DESIGNATED_INITIALIZER
|
42
42
|
|
43
|
-
#include "Config.h"
|
44
|
-
#include "ConfigGeneral/SetterFuncs.h"
|
45
|
-
#include "ConfigGeneral/ManifestGeneration.h"
|
46
|
-
#include "DirConfig/AutoGeneratedCreateFunction.cpp"
|
47
|
-
#include "DirConfig/AutoGeneratedMergeFunction.cpp"
|
48
|
-
#include "Utils.h"
|
49
43
|
#include <JsonTools/Autocast.h>
|
50
44
|
#include <SystemTools/UserDatabase.h>
|
51
45
|
#include <Utils.h>
|
@@ -56,9 +50,17 @@
|
|
56
50
|
#include <apr_strings.h>
|
57
51
|
// In Apache < 2.4, this macro was necessary for core_dir_config and other structs
|
58
52
|
#define CORE_PRIVATE
|
59
|
-
#include <
|
53
|
+
#include <httpd.h>
|
60
54
|
#include <http_config.h>
|
61
55
|
#include <http_log.h>
|
56
|
+
#include <http_core.h>
|
57
|
+
|
58
|
+
#include "Config.h"
|
59
|
+
#include "ConfigGeneral/SetterFuncs.h"
|
60
|
+
#include "ConfigGeneral/ManifestGeneration.h"
|
61
|
+
#include "DirConfig/AutoGeneratedCreateFunction.cpp"
|
62
|
+
#include "DirConfig/AutoGeneratedMergeFunction.cpp"
|
63
|
+
#include "Utils.h"
|
62
64
|
|
63
65
|
|
64
66
|
extern "C" module AP_MODULE_DECLARE_DATA passenger_module;
|
@@ -72,6 +74,9 @@ extern "C" module AP_MODULE_DECLARE_DATA passenger_module;
|
|
72
74
|
#endif
|
73
75
|
|
74
76
|
|
77
|
+
#include "ConfigGeneral/AutoGeneratedSetterFuncs.cpp"
|
78
|
+
|
79
|
+
|
75
80
|
namespace Passenger {
|
76
81
|
namespace Apache2Module {
|
77
82
|
|
@@ -174,8 +179,6 @@ postprocessConfig(server_rec *s, apr_pool_t *pool, apr_pool_t *temp_pool) {
|
|
174
179
|
* Passenger settings
|
175
180
|
*************************************************/
|
176
181
|
|
177
|
-
#include "ConfigGeneral/AutoGeneratedSetterFuncs.cpp"
|
178
|
-
|
179
182
|
static const char *
|
180
183
|
cmd_passenger_enterprise_only(cmd_parms *cmd, void *pcfg, const char *arg) {
|
181
184
|
return "this feature is only available in Phusion Passenger Enterprise. "
|
@@ -246,11 +249,8 @@ cmd_passenger_base_uri(cmd_parms *cmd, void *pcfg, const char *arg) {
|
|
246
249
|
}
|
247
250
|
}
|
248
251
|
|
249
|
-
extern "C" const command_rec passenger_commands[] = {
|
250
|
-
#include "ConfigGeneral/AutoGeneratedDefinitions.cpp"
|
251
|
-
{ NULL }
|
252
|
-
};
|
253
|
-
|
254
252
|
|
255
253
|
} // namespace Apache2Module
|
256
254
|
} // namespace Passenger
|
255
|
+
|
256
|
+
#include "ConfigGeneral/AutoGeneratedDefinitions.cpp"
|
data/src/apache2_module/Config.h
CHANGED
@@ -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.
|
@@ -40,28 +40,22 @@
|
|
40
40
|
#include <apr_pools.h>
|
41
41
|
#include <apr_strings.h>
|
42
42
|
|
43
|
+
#include "ConfigGeneral/Common.h"
|
44
|
+
#include "DirConfig/AutoGeneratedStruct.h"
|
45
|
+
#include "ServerConfig/AutoGeneratedStruct.h"
|
46
|
+
|
43
47
|
namespace Passenger {
|
44
48
|
namespace Apache2Module {
|
45
49
|
|
46
50
|
using namespace std;
|
47
51
|
|
48
52
|
|
49
|
-
enum Threeway {
|
50
|
-
UNSET = -1,
|
51
|
-
DISABLED = 0,
|
52
|
-
ENABLED = 1
|
53
|
-
};
|
54
|
-
|
55
|
-
#define UNSET_INT_VALUE INT_MIN
|
56
|
-
|
57
53
|
/**
|
58
|
-
* Per-directory configuration information.
|
54
|
+
* Per-directory configuration information (manually-written part).
|
59
55
|
*
|
60
56
|
* Use the getter methods to query information, because those will return
|
61
57
|
* the default value if the value is not specified.
|
62
58
|
*/
|
63
|
-
#include "DirConfig/AutoGeneratedStruct.h"
|
64
|
-
|
65
59
|
struct DirConfig: public AutoGeneratedDirConfig {
|
66
60
|
|
67
61
|
/*************************************/
|
@@ -72,14 +66,12 @@ struct DirConfig: public AutoGeneratedDirConfig {
|
|
72
66
|
|
73
67
|
|
74
68
|
/**
|
75
|
-
* Server-wide (global, not per-virtual host) configuration information
|
69
|
+
* Server-wide (global, not per-virtual host) configuration information
|
70
|
+
* (manually written part).
|
76
71
|
*
|
77
72
|
* Use the getter methods to query information, because those will return
|
78
73
|
* the default value if the value is not specified.
|
79
74
|
*/
|
80
|
-
|
81
|
-
#include "ServerConfig/AutoGeneratedStruct.h"
|
82
|
-
|
83
75
|
struct ServerConfig: public AutoGeneratedServerConfig {
|
84
76
|
Json::Value manifest;
|
85
77
|
|
@@ -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,493 +38,507 @@
|
|
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
|
-
"
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
"
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
"
|
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("PassengerAppType",
|
111
|
+
(Take1Func) cmd_passenger_app_type,
|
112
|
+
NULL,
|
113
|
+
RSRC_CONF | ACCESS_CONF,
|
114
|
+
"Force specific application type."),
|
115
|
+
AP_INIT_TAKE1("PassengerBaseURI",
|
116
|
+
(Take1Func) cmd_passenger_base_uri,
|
117
|
+
NULL,
|
118
|
+
RSRC_CONF | ACCESS_CONF,
|
119
|
+
"Declare the given base URI as belonging to a web application."),
|
120
|
+
AP_INIT_FLAG("PassengerBufferResponse",
|
121
|
+
(FlagFunc) cmd_passenger_buffer_response,
|
122
|
+
NULL,
|
123
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
124
|
+
"Whether to enable extra response buffering inside Apache."),
|
125
|
+
AP_INIT_FLAG("PassengerBufferUpload",
|
126
|
+
(FlagFunc) cmd_passenger_buffer_upload,
|
127
|
+
NULL,
|
128
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
129
|
+
"Whether to buffer file uploads."),
|
130
|
+
AP_INIT_TAKE1("PassengerConcurrencyModel",
|
131
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
132
|
+
NULL,
|
133
|
+
RSRC_CONF | ACCESS_CONF,
|
134
|
+
"The concurrency model that should be used for applications."),
|
135
|
+
AP_INIT_TAKE2("PassengerCtl",
|
136
|
+
(Take2Func) cmd_passenger_ctl,
|
137
|
+
NULL,
|
138
|
+
RSRC_CONF,
|
139
|
+
"Set advanced Phusion Passenger options."),
|
140
|
+
AP_INIT_TAKE1("PassengerDataBufferDir",
|
141
|
+
(Take1Func) cmd_passenger_data_buffer_dir,
|
142
|
+
NULL,
|
143
|
+
RSRC_CONF,
|
144
|
+
"The directory that Phusion Passenger data buffers should be stored into."),
|
145
|
+
AP_INIT_TAKE1("PassengerDebugLogFile",
|
146
|
+
(Take1Func) cmd_passenger_log_file,
|
147
|
+
NULL,
|
148
|
+
RSRC_CONF,
|
149
|
+
"The Phusion Passenger log file."),
|
150
|
+
AP_INIT_FLAG("PassengerDebugger",
|
151
|
+
(FlagFunc) cmd_passenger_enterprise_only,
|
152
|
+
NULL,
|
153
|
+
RSRC_CONF | ACCESS_CONF,
|
154
|
+
"Whether to turn on debugger support"),
|
155
|
+
AP_INIT_TAKE1("PassengerDefaultGroup",
|
156
|
+
(Take1Func) cmd_passenger_default_group,
|
157
|
+
NULL,
|
158
|
+
RSRC_CONF,
|
159
|
+
"The group that Phusion Passenger applications must run as when user switching fails or is disabled."),
|
160
|
+
AP_INIT_TAKE1("PassengerDefaultRuby",
|
161
|
+
(Take1Func) cmd_passenger_default_ruby,
|
162
|
+
NULL,
|
163
|
+
RSRC_CONF,
|
164
|
+
"Phusion Passenger's default Ruby interpreter to use."),
|
165
|
+
AP_INIT_TAKE1("PassengerDefaultUser",
|
166
|
+
(Take1Func) cmd_passenger_default_user,
|
167
|
+
NULL,
|
168
|
+
RSRC_CONF,
|
169
|
+
"The user that Phusion Passenger applications must run as when user switching fails or is disabled."),
|
170
|
+
AP_INIT_FLAG("PassengerDisableAnonymousTelemetry",
|
171
|
+
(FlagFunc) cmd_passenger_disable_anonymous_telemetry,
|
172
|
+
NULL,
|
173
|
+
RSRC_CONF,
|
174
|
+
"Whether to disable Phusion Passenger anonymous telemetry."),
|
175
|
+
AP_INIT_FLAG("PassengerDisableSecurityUpdateCheck",
|
176
|
+
(FlagFunc) cmd_passenger_disable_security_update_check,
|
177
|
+
NULL,
|
178
|
+
RSRC_CONF,
|
179
|
+
"Whether to disable the Phusion Passenger security update check & notification."),
|
180
|
+
AP_INIT_TAKE1("PassengerDumpConfigManifest",
|
181
|
+
(Take1Func) cmd_passenger_dump_config_manifest,
|
182
|
+
NULL,
|
183
|
+
RSRC_CONF,
|
184
|
+
"Dump the Passenger config manifest to the given file, for debugging purposes."),
|
185
|
+
AP_INIT_FLAG("PassengerEnabled",
|
186
|
+
(FlagFunc) cmd_passenger_enabled,
|
187
|
+
NULL,
|
188
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
189
|
+
"Enable or disable Phusion Passenger."),
|
190
|
+
AP_INIT_FLAG("PassengerErrorOverride",
|
191
|
+
(FlagFunc) cmd_passenger_error_override,
|
192
|
+
NULL,
|
193
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
194
|
+
"Allow Apache to handle error response."),
|
195
|
+
AP_INIT_TAKE1("PassengerFileDescriptorLogFile",
|
196
|
+
(Take1Func) cmd_passenger_file_descriptor_log_file,
|
197
|
+
NULL,
|
198
|
+
RSRC_CONF,
|
199
|
+
"The Phusion Passenger file descriptor log file."),
|
200
|
+
AP_INIT_TAKE1("PassengerFlyWith",
|
201
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
202
|
+
NULL,
|
203
|
+
RSRC_CONF,
|
204
|
+
"Use Flying Passenger"),
|
205
|
+
AP_INIT_TAKE1("PassengerForceMaxConcurrentRequestsPerProcess",
|
206
|
+
(Take1Func) cmd_passenger_force_max_concurrent_requests_per_process,
|
207
|
+
NULL,
|
208
|
+
RSRC_CONF | ACCESS_CONF,
|
209
|
+
"Force Passenger to believe that an application process can handle the given number of concurrent requests per process"),
|
210
|
+
AP_INIT_FLAG("PassengerFriendlyErrorPages",
|
211
|
+
(FlagFunc) cmd_passenger_friendly_error_pages,
|
212
|
+
NULL,
|
213
|
+
RSRC_CONF | ACCESS_CONF,
|
214
|
+
"Whether to display friendly error pages when something goes wrong."),
|
215
|
+
AP_INIT_TAKE1("PassengerGroup",
|
216
|
+
(Take1Func) cmd_passenger_group,
|
217
|
+
NULL,
|
218
|
+
RSRC_CONF | ACCESS_CONF,
|
219
|
+
"The group that Ruby applications must run as."),
|
220
|
+
AP_INIT_FLAG("PassengerHighPerformance",
|
221
|
+
(FlagFunc) cmd_passenger_high_performance,
|
222
|
+
NULL,
|
223
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
224
|
+
"Enable or disable Passenger's high performance mode."),
|
225
|
+
AP_INIT_TAKE1("PassengerInstanceRegistryDir",
|
226
|
+
(Take1Func) cmd_passenger_instance_registry_dir,
|
227
|
+
NULL,
|
228
|
+
RSRC_CONF,
|
229
|
+
"The directory to register the Phusion Passenger instance to."),
|
230
|
+
AP_INIT_FLAG("PassengerLoadShellEnvvars",
|
231
|
+
(FlagFunc) cmd_passenger_load_shell_envvars,
|
232
|
+
NULL,
|
233
|
+
RSRC_CONF | ACCESS_CONF,
|
234
|
+
"Whether to load environment variables from the shell before running the application."),
|
235
|
+
AP_INIT_TAKE1("PassengerLogFile",
|
236
|
+
(Take1Func) cmd_passenger_log_file,
|
237
|
+
NULL,
|
238
|
+
RSRC_CONF,
|
239
|
+
"The Phusion Passenger log file."),
|
240
|
+
AP_INIT_TAKE1("PassengerLogLevel",
|
241
|
+
(Take1Func) cmd_passenger_log_level,
|
242
|
+
NULL,
|
243
|
+
RSRC_CONF,
|
244
|
+
"The Phusion Passenger log verbosity."),
|
245
|
+
AP_INIT_TAKE1("PassengerLveMinUid",
|
246
|
+
(Take1Func) cmd_passenger_lve_min_uid,
|
247
|
+
NULL,
|
248
|
+
RSRC_CONF | ACCESS_CONF,
|
249
|
+
"Minimum user ID starting from which entering LVE and CageFS is allowed."),
|
250
|
+
AP_INIT_TAKE1("PassengerMaxInstances",
|
251
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
252
|
+
NULL,
|
253
|
+
RSRC_CONF | ACCESS_CONF,
|
254
|
+
"The maximum number of instances for the current application that Phusion Passenger may spawn."),
|
255
|
+
AP_INIT_TAKE1("PassengerMaxInstancesPerApp",
|
256
|
+
(Take1Func) cmd_passenger_max_instances_per_app,
|
257
|
+
NULL,
|
258
|
+
RSRC_CONF,
|
259
|
+
"The maximum number of simultaneously alive application instances a single application may occupy."),
|
260
|
+
AP_INIT_TAKE1("PassengerMaxPoolSize",
|
261
|
+
(Take1Func) cmd_passenger_max_pool_size,
|
262
|
+
NULL,
|
263
|
+
RSRC_CONF,
|
264
|
+
"The maximum number of simultaneously alive application processes."),
|
265
|
+
AP_INIT_TAKE1("PassengerMaxPreloaderIdleTime",
|
266
|
+
(Take1Func) cmd_passenger_max_preloader_idle_time,
|
267
|
+
NULL,
|
268
|
+
RSRC_CONF | ACCESS_CONF,
|
269
|
+
"The maximum number of seconds that a preloader process may be idle before it is shutdown."),
|
270
|
+
AP_INIT_TAKE1("PassengerMaxRequestQueueSize",
|
271
|
+
(Take1Func) cmd_passenger_max_request_queue_size,
|
272
|
+
NULL,
|
273
|
+
RSRC_CONF | ACCESS_CONF,
|
274
|
+
"The maximum number of queued requests."),
|
275
|
+
AP_INIT_TAKE1("PassengerMaxRequestQueueTime",
|
276
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
277
|
+
NULL,
|
278
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
279
|
+
"The maximum number of seconds that a request may remain in the queue before it is dropped."),
|
280
|
+
AP_INIT_TAKE1("PassengerMaxRequestTime",
|
281
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
282
|
+
NULL,
|
283
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
284
|
+
"The maximum time (in seconds) that the current application may spend on a request."),
|
285
|
+
AP_INIT_TAKE1("PassengerMaxRequests",
|
286
|
+
(Take1Func) cmd_passenger_max_requests,
|
287
|
+
NULL,
|
288
|
+
RSRC_CONF | ACCESS_CONF,
|
289
|
+
"The maximum number of requests that an application instance may process."),
|
290
|
+
AP_INIT_TAKE1("PassengerMemoryLimit",
|
291
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
292
|
+
NULL,
|
293
|
+
RSRC_CONF | ACCESS_CONF,
|
294
|
+
"The maximum amount of memory in MB that an application instance may use."),
|
295
|
+
AP_INIT_TAKE1("PassengerMeteorAppSettings",
|
296
|
+
(Take1Func) cmd_passenger_meteor_app_settings,
|
297
|
+
NULL,
|
298
|
+
RSRC_CONF | ACCESS_CONF,
|
299
|
+
"Settings file for (non-bundled) Meteor apps."),
|
300
|
+
AP_INIT_TAKE1("PassengerMinInstances",
|
301
|
+
(Take1Func) cmd_passenger_min_instances,
|
302
|
+
NULL,
|
303
|
+
RSRC_CONF | ACCESS_CONF,
|
304
|
+
"The minimum number of application instances to keep when cleaning idle instances."),
|
305
|
+
AP_INIT_TAKE1("PassengerMonitorLogFile",
|
306
|
+
(Take1Func) cmd_passenger_monitor_log_file,
|
307
|
+
NULL,
|
308
|
+
RSRC_CONF | ACCESS_CONF,
|
309
|
+
"Log file path to monitor."),
|
310
|
+
AP_INIT_TAKE1("PassengerNodejs",
|
311
|
+
(Take1Func) cmd_passenger_nodejs,
|
312
|
+
NULL,
|
313
|
+
RSRC_CONF | ACCESS_CONF,
|
314
|
+
"The Node.js command to use."),
|
315
|
+
AP_INIT_TAKE1("PassengerPoolIdleTime",
|
316
|
+
(Take1Func) cmd_passenger_pool_idle_time,
|
317
|
+
NULL,
|
318
|
+
RSRC_CONF,
|
319
|
+
"The maximum number of seconds that an application may be idle before it gets terminated."),
|
320
|
+
AP_INIT_TAKE1("PassengerPreStart",
|
321
|
+
(Take1Func) cmd_passenger_pre_start,
|
322
|
+
NULL,
|
323
|
+
RSRC_CONF,
|
324
|
+
"Prestart the given web applications during startup."),
|
325
|
+
AP_INIT_TAKE1("PassengerPython",
|
326
|
+
(Take1Func) cmd_passenger_python,
|
327
|
+
NULL,
|
328
|
+
RSRC_CONF | ACCESS_CONF,
|
329
|
+
"The Python interpreter to use."),
|
330
|
+
AP_INIT_FLAG("PassengerResistDeploymentErrors",
|
331
|
+
(FlagFunc) cmd_passenger_enterprise_only,
|
332
|
+
NULL,
|
333
|
+
RSRC_CONF | ACCESS_CONF,
|
334
|
+
"Whether to turn on deployment error resistance."),
|
335
|
+
AP_INIT_TAKE1("PassengerResponseBufferHighWatermark",
|
336
|
+
(Take1Func) cmd_passenger_response_buffer_high_watermark,
|
337
|
+
NULL,
|
338
|
+
RSRC_CONF,
|
339
|
+
"The maximum size of the Phusion Passenger response buffer."),
|
340
|
+
AP_INIT_TAKE1("PassengerRestartDir",
|
341
|
+
(Take1Func) cmd_passenger_restart_dir,
|
342
|
+
NULL,
|
343
|
+
RSRC_CONF | ACCESS_CONF,
|
344
|
+
"The directory in which Phusion Passenger should look for restart.txt."),
|
345
|
+
AP_INIT_FLAG("PassengerRollingRestarts",
|
346
|
+
(FlagFunc) cmd_passenger_enterprise_only,
|
347
|
+
NULL,
|
348
|
+
RSRC_CONF | ACCESS_CONF,
|
349
|
+
"Whether to turn on rolling restarts."),
|
350
|
+
AP_INIT_TAKE1("PassengerRoot",
|
351
|
+
(Take1Func) cmd_passenger_root,
|
352
|
+
NULL,
|
353
|
+
RSRC_CONF,
|
354
|
+
"The Phusion Passenger root folder."),
|
355
|
+
AP_INIT_TAKE1("PassengerRuby",
|
356
|
+
(Take1Func) cmd_passenger_ruby,
|
357
|
+
NULL,
|
358
|
+
RSRC_CONF | ACCESS_CONF,
|
359
|
+
"The Ruby interpreter to use."),
|
360
|
+
AP_INIT_TAKE1("PassengerSecurityUpdateCheckProxy",
|
361
|
+
(Take1Func) cmd_passenger_security_update_check_proxy,
|
362
|
+
NULL,
|
363
|
+
RSRC_CONF,
|
364
|
+
"Use specified HTTP/SOCKS proxy for the Phusion Passenger security update check."),
|
365
|
+
AP_INIT_FLAG("PassengerShowVersionInHeader",
|
366
|
+
(FlagFunc) cmd_passenger_show_version_in_header,
|
367
|
+
NULL,
|
368
|
+
RSRC_CONF,
|
369
|
+
"Whether to show the Phusion Passenger version number in the X-Powered-By header."),
|
370
|
+
AP_INIT_TAKE1("PassengerSocketBacklog",
|
371
|
+
(Take1Func) cmd_passenger_socket_backlog,
|
372
|
+
NULL,
|
373
|
+
RSRC_CONF,
|
374
|
+
"The Phusion Passenger socket backlog."),
|
375
|
+
AP_INIT_TAKE1("PassengerSpawnMethod",
|
376
|
+
(Take1Func) cmd_passenger_spawn_method,
|
377
|
+
NULL,
|
378
|
+
RSRC_CONF | ACCESS_CONF,
|
379
|
+
"The spawn method to use."),
|
380
|
+
AP_INIT_TAKE1("PassengerStartTimeout",
|
381
|
+
(Take1Func) cmd_passenger_start_timeout,
|
382
|
+
NULL,
|
383
|
+
RSRC_CONF | ACCESS_CONF,
|
384
|
+
"A timeout for application startup."),
|
385
|
+
AP_INIT_TAKE1("PassengerStartupFile",
|
386
|
+
(Take1Func) cmd_passenger_startup_file,
|
387
|
+
NULL,
|
388
|
+
RSRC_CONF | ACCESS_CONF,
|
389
|
+
"Force specific startup file."),
|
390
|
+
AP_INIT_TAKE1("PassengerStatThrottleRate",
|
391
|
+
(Take1Func) cmd_passenger_stat_throttle_rate,
|
392
|
+
NULL,
|
393
|
+
RSRC_CONF,
|
394
|
+
"Limit the number of stat calls to once per given seconds."),
|
395
|
+
AP_INIT_FLAG("PassengerStickySessions",
|
396
|
+
(FlagFunc) cmd_passenger_sticky_sessions,
|
397
|
+
NULL,
|
398
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
399
|
+
"Whether to enable sticky sessions."),
|
400
|
+
AP_INIT_TAKE1("PassengerStickySessionsCookieName",
|
401
|
+
(Take1Func) cmd_passenger_sticky_sessions_cookie_name,
|
402
|
+
NULL,
|
403
|
+
RSRC_CONF | ACCESS_CONF | OR_ALL,
|
404
|
+
"The cookie name to use for sticky sessions."),
|
405
|
+
AP_INIT_TAKE1("PassengerThreadCount",
|
406
|
+
(Take1Func) cmd_passenger_enterprise_only,
|
407
|
+
NULL,
|
408
|
+
RSRC_CONF | ACCESS_CONF,
|
409
|
+
"The number of threads that Phusion Passenger should spawn per application."),
|
410
|
+
AP_INIT_FLAG("PassengerTurbocaching",
|
411
|
+
(FlagFunc) cmd_passenger_turbocaching,
|
412
|
+
NULL,
|
413
|
+
RSRC_CONF,
|
414
|
+
"Whether to enable turbocaching in Phusion Passenger."),
|
415
|
+
AP_INIT_FLAG("PassengerUseGlobalQueue",
|
416
|
+
(FlagFunc) cmd_passenger_use_global_queue,
|
417
|
+
NULL,
|
418
|
+
RSRC_CONF | ACCESS_CONF,
|
419
|
+
"Obsolete option."),
|
420
|
+
AP_INIT_TAKE1("PassengerUser",
|
421
|
+
(Take1Func) cmd_passenger_user,
|
422
|
+
NULL,
|
423
|
+
RSRC_CONF | ACCESS_CONF,
|
424
|
+
"The user that Ruby applications must run as."),
|
425
|
+
AP_INIT_FLAG("PassengerUserSwitching",
|
426
|
+
(FlagFunc) cmd_passenger_user_switching,
|
427
|
+
NULL,
|
428
|
+
RSRC_CONF,
|
429
|
+
"Whether to enable user switching support in Phusion Passenger."),
|
430
|
+
AP_INIT_TAKE1("RackBaseURI",
|
431
|
+
(Take1Func) cmd_passenger_base_uri,
|
432
|
+
NULL,
|
433
|
+
RSRC_CONF | ACCESS_CONF,
|
434
|
+
"Declare the given base URI as belonging to a web application."),
|
435
|
+
AP_INIT_TAKE1("RackEnv",
|
436
|
+
(Take1Func) cmd_passenger_app_env,
|
437
|
+
NULL,
|
438
|
+
RSRC_CONF | ACCESS_CONF,
|
439
|
+
"The environment under which applications are run."),
|
440
|
+
AP_INIT_FLAG("RailsAllowModRewrite",
|
441
|
+
(FlagFunc) cmd_rails_allow_mod_rewrite,
|
442
|
+
NULL,
|
443
|
+
RSRC_CONF,
|
444
|
+
"Obsolete option."),
|
445
|
+
AP_INIT_TAKE1("RailsAppSpawnerIdleTime",
|
446
|
+
(Take1Func) cmd_passenger_max_preloader_idle_time,
|
447
|
+
NULL,
|
448
|
+
RSRC_CONF | ACCESS_CONF,
|
449
|
+
"The maximum number of seconds that a preloader process may be idle before it is shutdown."),
|
450
|
+
AP_INIT_TAKE1("RailsBaseURI",
|
451
|
+
(Take1Func) cmd_passenger_base_uri,
|
452
|
+
NULL,
|
453
|
+
RSRC_CONF | ACCESS_CONF,
|
454
|
+
"Declare the given base URI as belonging to a web application."),
|
455
|
+
AP_INIT_TAKE1("RailsDefaultUser",
|
456
|
+
(Take1Func) cmd_passenger_default_user,
|
457
|
+
NULL,
|
458
|
+
RSRC_CONF,
|
459
|
+
"The user that Phusion Passenger applications must run as when user switching fails or is disabled."),
|
460
|
+
AP_INIT_TAKE1("RailsEnv",
|
461
|
+
(Take1Func) cmd_passenger_app_env,
|
462
|
+
NULL,
|
463
|
+
RSRC_CONF | ACCESS_CONF,
|
464
|
+
"The environment under which applications are run."),
|
465
|
+
AP_INIT_TAKE1("RailsFrameworkSpawnerIdleTime",
|
466
|
+
(Take1Func) cmd_rails_framework_spawner_idle_time,
|
467
|
+
NULL,
|
468
|
+
RSRC_CONF,
|
469
|
+
"Obsolete option."),
|
470
|
+
AP_INIT_TAKE1("RailsMaxInstancesPerApp",
|
471
|
+
(Take1Func) cmd_passenger_max_instances_per_app,
|
472
|
+
NULL,
|
473
|
+
RSRC_CONF,
|
474
|
+
"The maximum number of simultaneously alive application instances a single application may occupy."),
|
475
|
+
AP_INIT_TAKE1("RailsMaxPoolSize",
|
476
|
+
(Take1Func) cmd_passenger_max_pool_size,
|
477
|
+
NULL,
|
478
|
+
RSRC_CONF,
|
479
|
+
"The maximum number of simultaneously alive application processes."),
|
480
|
+
AP_INIT_TAKE1("RailsPoolIdleTime",
|
481
|
+
(Take1Func) cmd_passenger_pool_idle_time,
|
482
|
+
NULL,
|
483
|
+
RSRC_CONF,
|
484
|
+
"The maximum number of seconds that an application may be idle before it gets terminated."),
|
485
|
+
AP_INIT_TAKE1("RailsRuby",
|
486
|
+
(Take1Func) cmd_passenger_ruby,
|
487
|
+
NULL,
|
488
|
+
RSRC_CONF | ACCESS_CONF,
|
489
|
+
"The Ruby interpreter to use."),
|
490
|
+
AP_INIT_TAKE1("RailsSpawnMethod",
|
491
|
+
(Take1Func) cmd_passenger_spawn_method,
|
492
|
+
NULL,
|
493
|
+
RSRC_CONF | ACCESS_CONF,
|
494
|
+
"The spawn method to use."),
|
495
|
+
AP_INIT_TAKE1("RailsSpawnServer",
|
496
|
+
(Take1Func) cmd_rails_spawn_server,
|
497
|
+
NULL,
|
498
|
+
RSRC_CONF,
|
499
|
+
"Obsolete option."),
|
500
|
+
AP_INIT_FLAG("RailsUserSwitching",
|
501
|
+
(FlagFunc) cmd_passenger_user_switching,
|
502
|
+
NULL,
|
503
|
+
RSRC_CONF,
|
504
|
+
"Whether to enable user switching support in Phusion Passenger."),
|
505
|
+
AP_INIT_TAKE1("UnionStationFilter",
|
506
|
+
(Take1Func) cmd_union_station_filter,
|
507
|
+
NULL,
|
508
|
+
RSRC_CONF | ACCESS_CONF | OR_OPTIONS,
|
509
|
+
"Obsolete option."),
|
510
|
+
AP_INIT_TAKE1("UnionStationGatewayAddress",
|
511
|
+
(Take1Func) cmd_union_station_gateway_address,
|
512
|
+
NULL,
|
513
|
+
RSRC_CONF,
|
514
|
+
"Obsolete option."),
|
515
|
+
AP_INIT_TAKE1("UnionStationGatewayCert",
|
516
|
+
(Take1Func) cmd_union_station_gateway_cert,
|
517
|
+
NULL,
|
518
|
+
RSRC_CONF,
|
519
|
+
"Obsolete option."),
|
520
|
+
AP_INIT_TAKE1("UnionStationGatewayPort",
|
521
|
+
(Take1Func) cmd_union_station_gateway_port,
|
522
|
+
NULL,
|
523
|
+
RSRC_CONF,
|
524
|
+
"Obsolete option."),
|
525
|
+
AP_INIT_TAKE1("UnionStationKey",
|
526
|
+
(Take1Func) cmd_union_station_key,
|
527
|
+
NULL,
|
528
|
+
RSRC_CONF | ACCESS_CONF,
|
529
|
+
"Obsolete option."),
|
530
|
+
AP_INIT_TAKE1("UnionStationProxyAddress",
|
531
|
+
(Take1Func) cmd_union_station_proxy_address,
|
532
|
+
NULL,
|
533
|
+
RSRC_CONF,
|
534
|
+
"Obsolete option."),
|
535
|
+
AP_INIT_FLAG("UnionStationSupport",
|
536
|
+
(FlagFunc) cmd_union_station_support,
|
537
|
+
NULL,
|
538
|
+
RSRC_CONF | ACCESS_CONF,
|
539
|
+
"Obsolete option."),
|
540
|
+
{ NULL }
|
541
|
+
};
|
542
|
+
|
543
|
+
} // namespace Apache2Module
|
544
|
+
} // namespace Passenger
|