passenger 5.3.5 → 5.3.6

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