passenger 5.0.28 → 5.0.29

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +5 -0
  3. data/CHANGELOG +13 -0
  4. data/build/apache2.rb +3 -3
  5. data/build/common_library.rb +3 -3
  6. data/build/nginx.rb +4 -4
  7. data/build/packaging.rb +9 -8
  8. data/build/support/cxx_dependency_map.rb +9 -7
  9. data/build/support/general.rb +39 -0
  10. data/build/support/vendor/cxxcodebuilder/CxxCodeBuilder.sublime-project +8 -0
  11. data/build/support/vendor/cxxcodebuilder/Gemfile +4 -0
  12. data/build/support/vendor/cxxcodebuilder/Gemfile.lock +28 -0
  13. data/build/support/vendor/cxxcodebuilder/LICENSE.md +19 -0
  14. data/build/support/vendor/cxxcodebuilder/README.md +98 -0
  15. data/build/support/vendor/cxxcodebuilder/Rakefile +4 -0
  16. data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder.rb +23 -0
  17. data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +574 -0
  18. data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/initializer_builder.rb +166 -0
  19. data/build/test_basics.rb +2 -1
  20. data/resources/templates/standalone/server.erb +6 -4
  21. data/src/agent/Core/Controller/ForwardResponse.cpp +5 -5
  22. data/src/agent/Watchdog/WatchdogMain.cpp +0 -10
  23. data/src/apache2_module/ConfigurationCommands.cpp +181 -248
  24. data/src/apache2_module/ConfigurationCommands.cpp.cxxcodebuilder +127 -0
  25. data/src/apache2_module/ConfigurationFields.hpp +135 -51
  26. data/src/apache2_module/ConfigurationFields.hpp.cxxcodebuilder +113 -0
  27. data/src/apache2_module/ConfigurationSetters.cpp +414 -459
  28. data/src/apache2_module/ConfigurationSetters.cpp.cxxcodebuilder +144 -0
  29. data/src/apache2_module/CreateDirConfig.cpp +49 -52
  30. data/src/apache2_module/CreateDirConfig.cpp.cxxcodebuilder +81 -0
  31. data/src/apache2_module/Hooks.cpp +0 -14
  32. data/src/apache2_module/MergeDirConfig.cpp +136 -226
  33. data/src/apache2_module/MergeDirConfig.cpp.cxxcodebuilder +97 -0
  34. data/src/apache2_module/SetHeaders.cpp +92 -143
  35. data/src/apache2_module/SetHeaders.cpp.cxxcodebuilder +106 -0
  36. data/src/cxx_supportlib/Constants.h +86 -146
  37. data/src/cxx_supportlib/Constants.h.cxxcodebuilder +43 -0
  38. data/src/cxx_supportlib/DataStructures/LString.h +40 -23
  39. data/src/cxx_supportlib/MemoryKit/mbuf.cpp +60 -25
  40. data/src/cxx_supportlib/MemoryKit/mbuf.h +50 -25
  41. data/src/cxx_supportlib/ServerKit/CookieUtils.h +36 -3
  42. data/src/cxx_supportlib/ServerKit/HeaderTable.h +2 -8
  43. data/src/cxx_supportlib/ServerKit/HttpServer.h +6 -15
  44. data/src/cxx_supportlib/WatchdogLauncher.cpp +4 -4
  45. data/src/cxx_supportlib/WatchdogLauncher.h +2 -3
  46. data/src/nginx_module/CacheLocationConfig.c +623 -780
  47. data/src/nginx_module/CacheLocationConfig.c.cxxcodebuilder +214 -0
  48. data/src/nginx_module/Configuration.h +1 -1
  49. data/src/nginx_module/ConfigurationCommands.c +404 -535
  50. data/src/nginx_module/ConfigurationCommands.c.cxxcodebuilder +157 -0
  51. data/src/nginx_module/CreateLocationConfig.c +82 -206
  52. data/src/nginx_module/CreateLocationConfig.c.cxxcodebuilder +98 -0
  53. data/src/nginx_module/LocationConfig.h +97 -0
  54. data/src/nginx_module/LocationConfig.h.cxxcodebuilder +131 -0
  55. data/src/nginx_module/MergeLocationConfig.c +157 -278
  56. data/src/nginx_module/MergeLocationConfig.c.cxxcodebuilder +144 -0
  57. data/src/nginx_module/ngx_http_passenger_module.c +4 -10
  58. data/src/ruby_supportlib/phusion_passenger.rb +4 -4
  59. data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +2 -2
  60. data/src/ruby_supportlib/phusion_passenger/packaging.rb +2 -0
  61. data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +6 -0
  62. data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +1 -1
  63. data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +27 -8
  64. data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +120 -2
  65. data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/lock_file.rb +1 -1
  66. data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/spawn.rb +4 -4
  67. data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/version.rb +1 -1
  68. data/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/api.rb +5 -5
  69. metadata +24 -15
  70. data/src/apache2_module/ConfigurationCommands.cpp.erb +0 -109
  71. data/src/apache2_module/ConfigurationFields.hpp.erb +0 -98
  72. data/src/apache2_module/ConfigurationSetters.cpp.erb +0 -128
  73. data/src/apache2_module/CreateDirConfig.cpp.erb +0 -72
  74. data/src/apache2_module/MergeDirConfig.cpp.erb +0 -82
  75. data/src/apache2_module/SetHeaders.cpp.erb +0 -91
  76. data/src/cxx_supportlib/Constants.h.erb +0 -41
  77. data/src/nginx_module/CacheLocationConfig.c.erb +0 -171
  78. data/src/nginx_module/ConfigurationCommands.c.erb +0 -144
  79. data/src/nginx_module/ConfigurationFields.h +0 -145
  80. data/src/nginx_module/ConfigurationFields.h.erb +0 -112
  81. data/src/nginx_module/CreateLocationConfig.c.erb +0 -78
  82. data/src/nginx_module/MergeLocationConfig.c.erb +0 -118
@@ -0,0 +1,144 @@
1
+ # Phusion Passenger - https://www.phusionpassenger.com/
2
+ # Copyright (c) 2010-2016 Phusion Holding B.V.
3
+ #
4
+ # "Passenger", "Phusion Passenger" and "Union Station" are registered
5
+ # trademarks of Phusion Holding B.V.
6
+ #
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ # THE SOFTWARE.
24
+
25
+ # This file uses the cxxcodebuilder API. Learn more at:
26
+ # https://github.com/phusion/passenger/cxxcodebuilder
27
+
28
+ require 'phusion_passenger/apache2/config_options'
29
+
30
+ def main
31
+ comment copyright_header_for(__FILE__)
32
+
33
+ separator
34
+
35
+ comment %q{
36
+ ConfigurationSetters.cpp is automatically generated from ConfigurationSetters.cpp.cxxcodebuilder,
37
+ using definitions from src/ruby_supportlib/phusion_passenger/apache2/config_options.rb.
38
+ Edits to ConfigurationSetters.cpp will be lost.
39
+
40
+ To update ConfigurationSetters.cpp:
41
+ rake apache2
42
+
43
+ To force regeneration of ConfigurationSetters.cpp:
44
+ rm -f src/apache2_module/ConfigurationSetters.cpp
45
+ rake src/apache2_module/ConfigurationSetters.cpp
46
+ }
47
+
48
+ separator
49
+
50
+ filter_eligible_options(APACHE2_DIRECTORY_CONFIGURATION_OPTIONS).each do |option|
51
+ func_name = function_name_for(option)
52
+
53
+ if option[:type] == :string
54
+ function("static const char *#{func_name}(cmd_parms *cmd, void *pcfg, const char *arg)", %Q{
55
+ DirConfig *config = (DirConfig *) pcfg;
56
+ config->#{struct_field_for(option)} = arg;
57
+ return NULL;
58
+ })
59
+ elsif option[:type] == :integer
60
+ function "static const char *#{func_name}(cmd_parms *cmd, void *pcfg, const char *arg)" do
61
+ add_code %q[
62
+ DirConfig *config = (DirConfig *) pcfg;
63
+ char *end;
64
+ long result;
65
+
66
+ result = strtol(arg, &end, 10);
67
+ if (*end != '\0') {
68
+ string message = "Invalid number specified for ";
69
+ message.append(cmd->directive->directive);
70
+ message.append(".");
71
+
72
+ char *messageStr = (char *) apr_palloc(cmd->temp_pool,
73
+ message.size() + 1);
74
+ memcpy(messageStr, message.c_str(), message.size() + 1);
75
+ return messageStr;
76
+ ]
77
+
78
+ if option[:min_value]
79
+ add_code %Q[
80
+ } else if (result < #{option[:min_value]}) {
81
+ string message = "Value for ";
82
+ message.append(cmd->directive->directive);
83
+ message.append(" must be greater than or equal to #{option[:min_value]}.");
84
+
85
+ char *messageStr = (char *) apr_palloc(cmd->temp_pool,
86
+ message.size() + 1);
87
+ memcpy(messageStr, message.c_str(), message.size() + 1);
88
+ return messageStr;
89
+ ]
90
+ end
91
+
92
+ add_code %Q[
93
+ } else {
94
+ config->#{struct_field_for(option)} = (int) result;
95
+ return NULL;
96
+ }
97
+ ]
98
+ end
99
+ elsif option[:type] == :flag
100
+ function("static const char *#{func_name}(cmd_parms *cmd, void *pcfg, const char *arg)", %Q{
101
+ DirConfig *config = (DirConfig *) pcfg;
102
+ config->#{struct_field_for(option)} =
103
+ arg ?
104
+ DirConfig::ENABLED :
105
+ DirConfig::DISABLED;
106
+ return NULL;
107
+ })
108
+ else
109
+ raise "Unknown option type #{option[:type].inspect} for option #{option[:name]}"
110
+ end
111
+ end
112
+ end
113
+
114
+ def filter_eligible_options(options)
115
+ options.reject do |option|
116
+ option[:alias_for] ||
117
+ option.fetch(:field, true).nil? ||
118
+ option[:field].to_s =~ /\./ ||
119
+ option[:function]
120
+ end
121
+ end
122
+
123
+ def struct_field_for(option)
124
+ if option.has_key?(:field)
125
+ option[:field]
126
+ else
127
+ result = option[:name].sub(/^Passenger/, '')
128
+ result[0] = result[0..0].downcase
129
+ result
130
+ end
131
+ end
132
+
133
+ def min_value_for(option)
134
+ option[:min_value] || 0
135
+ end
136
+
137
+ def function_name_for(option)
138
+ function_name = option[:name].gsub(/[A-Z]/) do |letter|
139
+ "_" + letter[0..0].downcase
140
+ end
141
+ "cmd#{function_name}"
142
+ end
143
+
144
+ main
@@ -1,31 +1,31 @@
1
1
  /*
2
- * Phusion Passenger - https://www.phusionpassenger.com/
3
- * Copyright (c) 2010-2015 Phusion Holding B.V.
2
+ * Phusion Passenger - https://www.phusionpassenger.com/
3
+ * Copyright (c) 2010-2016 Phusion Holding B.V.
4
4
  *
5
- * "Passenger", "Phusion Passenger" and "Union Station" are registered
6
- * trademarks of Phusion Holding B.V.
5
+ * "Passenger", "Phusion Passenger" and "Union Station" are registered
6
+ * trademarks of Phusion Holding B.V.
7
7
  *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
14
  *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
15
+ * The above copyright notice and this permission notice shall be included in
16
+ * all copies or substantial portions of the Software.
17
17
  *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ * THE SOFTWARE.
25
25
  */
26
26
 
27
27
  /*
28
- * CreateDirConfig.cpp is automatically generated from CreateDirConfig.cpp.erb,
28
+ * CreateDirConfig.cpp is automatically generated from CreateDirConfig.cpp.cxxcodebuilder,
29
29
  * using definitions from src/ruby_supportlib/phusion_passenger/apache2/config_options.rb.
30
30
  * Edits to CreateDirConfig.cpp will be lost.
31
31
  *
@@ -37,35 +37,32 @@
37
37
  * rake src/apache2_module/CreateDirConfig.cpp
38
38
  */
39
39
 
40
-
41
-
42
- config->ruby = NULL;
43
- config->python = NULL;
44
- config->nodejs = NULL;
45
- config->meteorAppSettings = NULL;
46
- config->appEnv = NULL;
47
- config->minInstances = UNSET_INT_VALUE;
48
- config->maxInstancesPerApp = UNSET_INT_VALUE;
49
- config->user = NULL;
50
- config->group = NULL;
51
- config->errorOverride = DirConfig::UNSET;
52
- config->maxRequests = UNSET_INT_VALUE;
53
- config->startTimeout = UNSET_INT_VALUE;
54
- config->highPerformance = DirConfig::UNSET;
55
- config->enabled = DirConfig::UNSET;
56
- config->maxRequestQueueSize = UNSET_INT_VALUE;
57
- config->maxPreloaderIdleTime = UNSET_INT_VALUE;
58
- config->loadShellEnvvars = DirConfig::UNSET;
59
- config->bufferUpload = DirConfig::UNSET;
60
- config->appType = NULL;
61
- config->startupFile = NULL;
62
- config->stickySessions = DirConfig::UNSET;
63
- config->stickySessionsCookieName = DirConfig::UNSET;
64
- config->spawnMethod = NULL;
65
- config->showVersionInHeader = DirConfig::UNSET;
66
- config->friendlyErrorPages = DirConfig::UNSET;
67
- config->restartDir = NULL;
68
- config->appGroupName = NULL;
69
- config->forceMaxConcurrentRequestsPerProcess = UNSET_INT_VALUE;
70
- config->lveMinUid = UNSET_INT_VALUE;
71
-
40
+ config->ruby = NULL;
41
+ config->python = NULL;
42
+ config->nodejs = NULL;
43
+ config->meteorAppSettings = NULL;
44
+ config->appEnv = NULL;
45
+ config->minInstances = UNSET_INT_VALUE;
46
+ config->maxInstancesPerApp = UNSET_INT_VALUE;
47
+ config->user = NULL;
48
+ config->group = NULL;
49
+ config->errorOverride = DirConfig::UNSET;
50
+ config->maxRequests = UNSET_INT_VALUE;
51
+ config->startTimeout = UNSET_INT_VALUE;
52
+ config->highPerformance = DirConfig::UNSET;
53
+ config->enabled = DirConfig::UNSET;
54
+ config->maxRequestQueueSize = UNSET_INT_VALUE;
55
+ config->maxPreloaderIdleTime = UNSET_INT_VALUE;
56
+ config->loadShellEnvvars = DirConfig::UNSET;
57
+ config->bufferUpload = DirConfig::UNSET;
58
+ config->appType = NULL;
59
+ config->startupFile = NULL;
60
+ config->stickySessions = DirConfig::UNSET;
61
+ config->stickySessionsCookieName = DirConfig::UNSET;
62
+ config->spawnMethod = NULL;
63
+ config->showVersionInHeader = DirConfig::UNSET;
64
+ config->friendlyErrorPages = DirConfig::UNSET;
65
+ config->restartDir = NULL;
66
+ config->appGroupName = NULL;
67
+ config->forceMaxConcurrentRequestsPerProcess = UNSET_INT_VALUE;
68
+ config->lveMinUid = UNSET_INT_VALUE;
@@ -0,0 +1,81 @@
1
+ # Phusion Passenger - https://www.phusionpassenger.com/
2
+ # Copyright (c) 2010-2016 Phusion Holding B.V.
3
+ #
4
+ # "Passenger", "Phusion Passenger" and "Union Station" are registered
5
+ # trademarks of Phusion Holding B.V.
6
+ #
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ # THE SOFTWARE.
24
+
25
+ # This file uses the cxxcodebuilder API. Learn more at:
26
+ # https://github.com/phusion/passenger/cxxcodebuilder
27
+
28
+ require 'phusion_passenger/apache2/config_options'
29
+
30
+ def main
31
+ comment copyright_header_for(__FILE__)
32
+
33
+ separator
34
+
35
+ comment %q{
36
+ CreateDirConfig.cpp is automatically generated from CreateDirConfig.cpp.cxxcodebuilder,
37
+ using definitions from src/ruby_supportlib/phusion_passenger/apache2/config_options.rb.
38
+ Edits to CreateDirConfig.cpp will be lost.
39
+
40
+ To update CreateDirConfig.cpp:
41
+ rake apache2
42
+
43
+ To force regeneration of CreateDirConfig.cpp:
44
+ rm -f src/apache2_module/CreateDirConfig.cpp
45
+ rake src/apache2_module/CreateDirConfig.cpp
46
+ }
47
+
48
+ separator
49
+
50
+ filter_eligible_options(APACHE2_DIRECTORY_CONFIGURATION_OPTIONS).each do |option|
51
+ if option[:type] == :string
52
+ add_code("config->#{struct_field_for(option)} = NULL;")
53
+ elsif option[:type] == :integer
54
+ add_code("config->#{struct_field_for(option)} = UNSET_INT_VALUE;")
55
+ elsif option[:type] == :flag
56
+ add_code("config->#{struct_field_for(option)} = DirConfig::UNSET;")
57
+ else
58
+ raise "Unknown option type #{option[:type].inspect} for option #{option[:name]}"
59
+ end
60
+ end
61
+ end
62
+
63
+ def filter_eligible_options(options)
64
+ options.reject do |option|
65
+ option[:alias_for] ||
66
+ option.fetch(:field, true).nil? ||
67
+ option[:field].to_s =~ /\./
68
+ end
69
+ end
70
+
71
+ def struct_field_for(option)
72
+ if option.has_key?(:field)
73
+ option[:field]
74
+ else
75
+ result = option[:name].sub(/^Passenger/, '')
76
+ result[0] = result[0..0].downcase
77
+ result
78
+ end
79
+ end
80
+
81
+ main
@@ -314,19 +314,6 @@ private:
314
314
  return conn;
315
315
  }
316
316
 
317
- vector<string> getConfigFiles(server_rec *s) const {
318
- server_rec *server;
319
- vector<string> result;
320
-
321
- for (server = s; server != NULL; server = server->next) {
322
- if (server->defn_name != NULL) {
323
- result.push_back(server->defn_name);
324
- }
325
- }
326
-
327
- return result;
328
- }
329
-
330
317
  bool hasModRewrite() {
331
318
  if (m_hasModRewrite == UNKNOWN) {
332
319
  if (ap_find_linked_module("mod_rewrite.c")) {
@@ -1290,7 +1277,6 @@ public:
1290
1277
  VariantMap params;
1291
1278
  params
1292
1279
  .setPid ("web_server_control_process_pid", getpid())
1293
- .setStrSet("web_server_config_files", getConfigFiles(s))
1294
1280
  .set ("server_software", webServerDesc)
1295
1281
  .setBool("multi_app", true)
1296
1282
  .setBool("load_shell_envvars", true)
@@ -1,31 +1,31 @@
1
1
  /*
2
- * Phusion Passenger - https://www.phusionpassenger.com/
3
- * Copyright (c) 2010-2013 Phusion Holding B.V.
2
+ * Phusion Passenger - https://www.phusionpassenger.com/
3
+ * Copyright (c) 2010-2016 Phusion Holding B.V.
4
4
  *
5
- * "Passenger", "Phusion Passenger" and "Union Station" are registered
6
- * trademarks of Phusion Holding B.V.
5
+ * "Passenger", "Phusion Passenger" and "Union Station" are registered
6
+ * trademarks of Phusion Holding B.V.
7
7
  *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
14
  *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
15
+ * The above copyright notice and this permission notice shall be included in
16
+ * all copies or substantial portions of the Software.
17
17
  *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ * THE SOFTWARE.
25
25
  */
26
26
 
27
27
  /*
28
- * MergeDirConfig.cpp is automatically generated from MergeDirConfig.cpp.erb,
28
+ * MergeDirConfig.cpp is automatically generated from MergeDirConfig.cpp.cxxcodebuilder,
29
29
  * using definitions from src/ruby_supportlib/phusion_passenger/apache2/config_options.rb.
30
30
  * Edits to MergeDirConfig.cpp will be lost.
31
31
  *
@@ -37,209 +37,119 @@
37
37
  * rake src/apache2_module/MergeDirConfig.cpp
38
38
  */
39
39
 
40
-
41
-
42
-
43
-
44
- config->ruby =
45
- (add->ruby == NULL) ?
46
- base->ruby :
47
- add->ruby;
48
-
49
-
50
-
51
- config->python =
52
- (add->python == NULL) ?
53
- base->python :
54
- add->python;
55
-
56
-
57
-
58
- config->nodejs =
59
- (add->nodejs == NULL) ?
60
- base->nodejs :
61
- add->nodejs;
62
-
63
-
64
-
65
- config->meteorAppSettings =
66
- (add->meteorAppSettings == NULL) ?
67
- base->meteorAppSettings :
68
- add->meteorAppSettings;
69
-
70
-
71
-
72
- config->appEnv =
73
- (add->appEnv == NULL) ?
74
- base->appEnv :
75
- add->appEnv;
76
-
77
-
78
-
79
- config->minInstances =
80
- (add->minInstances == UNSET_INT_VALUE) ?
81
- base->minInstances :
82
- add->minInstances;
83
-
84
-
85
-
86
- config->maxInstancesPerApp =
87
- (add->maxInstancesPerApp == UNSET_INT_VALUE) ?
88
- base->maxInstancesPerApp :
89
- add->maxInstancesPerApp;
90
-
91
-
92
-
93
- config->user =
94
- (add->user == NULL) ?
95
- base->user :
96
- add->user;
97
-
98
-
99
-
100
- config->group =
101
- (add->group == NULL) ?
102
- base->group :
103
- add->group;
104
-
105
-
106
-
107
- config->errorOverride =
108
- (add->errorOverride == DirConfig::UNSET) ?
109
- base->errorOverride :
110
- add->errorOverride;
111
-
112
-
113
-
114
- config->maxRequests =
115
- (add->maxRequests == UNSET_INT_VALUE) ?
116
- base->maxRequests :
117
- add->maxRequests;
118
-
119
-
120
-
121
- config->startTimeout =
122
- (add->startTimeout == UNSET_INT_VALUE) ?
123
- base->startTimeout :
124
- add->startTimeout;
125
-
126
-
127
-
128
- config->highPerformance =
129
- (add->highPerformance == DirConfig::UNSET) ?
130
- base->highPerformance :
131
- add->highPerformance;
132
-
133
-
134
-
135
- config->enabled =
136
- (add->enabled == DirConfig::UNSET) ?
137
- base->enabled :
138
- add->enabled;
139
-
140
-
141
-
142
- config->maxRequestQueueSize =
143
- (add->maxRequestQueueSize == UNSET_INT_VALUE) ?
144
- base->maxRequestQueueSize :
145
- add->maxRequestQueueSize;
146
-
147
-
148
-
149
- config->maxPreloaderIdleTime =
150
- (add->maxPreloaderIdleTime == UNSET_INT_VALUE) ?
151
- base->maxPreloaderIdleTime :
152
- add->maxPreloaderIdleTime;
153
-
154
-
155
-
156
- config->loadShellEnvvars =
157
- (add->loadShellEnvvars == DirConfig::UNSET) ?
158
- base->loadShellEnvvars :
159
- add->loadShellEnvvars;
160
-
161
-
162
-
163
- config->bufferUpload =
164
- (add->bufferUpload == DirConfig::UNSET) ?
165
- base->bufferUpload :
166
- add->bufferUpload;
167
-
168
-
169
-
170
- config->appType =
171
- (add->appType == NULL) ?
172
- base->appType :
173
- add->appType;
174
-
175
-
176
-
177
- config->startupFile =
178
- (add->startupFile == NULL) ?
179
- base->startupFile :
180
- add->startupFile;
181
-
182
-
183
-
184
- config->stickySessions =
185
- (add->stickySessions == DirConfig::UNSET) ?
186
- base->stickySessions :
187
- add->stickySessions;
188
-
189
-
190
-
191
- config->stickySessionsCookieName =
192
- (add->stickySessionsCookieName == DirConfig::UNSET) ?
193
- base->stickySessionsCookieName :
194
- add->stickySessionsCookieName;
195
-
196
-
197
-
198
- config->spawnMethod =
199
- (add->spawnMethod == NULL) ?
200
- base->spawnMethod :
201
- add->spawnMethod;
202
-
203
-
204
-
205
- config->showVersionInHeader =
206
- (add->showVersionInHeader == DirConfig::UNSET) ?
207
- base->showVersionInHeader :
208
- add->showVersionInHeader;
209
-
210
-
211
-
212
- config->friendlyErrorPages =
213
- (add->friendlyErrorPages == DirConfig::UNSET) ?
214
- base->friendlyErrorPages :
215
- add->friendlyErrorPages;
216
-
217
-
218
-
219
- config->restartDir =
220
- (add->restartDir == NULL) ?
221
- base->restartDir :
222
- add->restartDir;
223
-
224
-
225
-
226
- config->appGroupName =
227
- (add->appGroupName == NULL) ?
228
- base->appGroupName :
229
- add->appGroupName;
230
-
231
-
232
-
233
- config->forceMaxConcurrentRequestsPerProcess =
234
- (add->forceMaxConcurrentRequestsPerProcess == UNSET_INT_VALUE) ?
235
- base->forceMaxConcurrentRequestsPerProcess :
236
- add->forceMaxConcurrentRequestsPerProcess;
237
-
238
-
239
-
240
- config->lveMinUid =
241
- (add->lveMinUid == UNSET_INT_VALUE) ?
242
- base->lveMinUid :
243
- add->lveMinUid;
244
-
245
-
40
+ config->ruby =
41
+ (add->ruby == NULL) ?
42
+ base->ruby :
43
+ add->ruby;
44
+ config->python =
45
+ (add->python == NULL) ?
46
+ base->python :
47
+ add->python;
48
+ config->nodejs =
49
+ (add->nodejs == NULL) ?
50
+ base->nodejs :
51
+ add->nodejs;
52
+ config->meteorAppSettings =
53
+ (add->meteorAppSettings == NULL) ?
54
+ base->meteorAppSettings :
55
+ add->meteorAppSettings;
56
+ config->appEnv =
57
+ (add->appEnv == NULL) ?
58
+ base->appEnv :
59
+ add->appEnv;
60
+ config->minInstances =
61
+ (add->minInstances == UNSET_INT_VALUE) ?
62
+ base->minInstances :
63
+ add->minInstances;
64
+ config->maxInstancesPerApp =
65
+ (add->maxInstancesPerApp == UNSET_INT_VALUE) ?
66
+ base->maxInstancesPerApp :
67
+ add->maxInstancesPerApp;
68
+ config->user =
69
+ (add->user == NULL) ?
70
+ base->user :
71
+ add->user;
72
+ config->group =
73
+ (add->group == NULL) ?
74
+ base->group :
75
+ add->group;
76
+ config->errorOverride =
77
+ (add->errorOverride == DirConfig::UNSET) ?
78
+ base->errorOverride :
79
+ add->errorOverride;
80
+ config->maxRequests =
81
+ (add->maxRequests == UNSET_INT_VALUE) ?
82
+ base->maxRequests :
83
+ add->maxRequests;
84
+ config->startTimeout =
85
+ (add->startTimeout == UNSET_INT_VALUE) ?
86
+ base->startTimeout :
87
+ add->startTimeout;
88
+ config->highPerformance =
89
+ (add->highPerformance == DirConfig::UNSET) ?
90
+ base->highPerformance :
91
+ add->highPerformance;
92
+ config->enabled =
93
+ (add->enabled == DirConfig::UNSET) ?
94
+ base->enabled :
95
+ add->enabled;
96
+ config->maxRequestQueueSize =
97
+ (add->maxRequestQueueSize == UNSET_INT_VALUE) ?
98
+ base->maxRequestQueueSize :
99
+ add->maxRequestQueueSize;
100
+ config->maxPreloaderIdleTime =
101
+ (add->maxPreloaderIdleTime == UNSET_INT_VALUE) ?
102
+ base->maxPreloaderIdleTime :
103
+ add->maxPreloaderIdleTime;
104
+ config->loadShellEnvvars =
105
+ (add->loadShellEnvvars == DirConfig::UNSET) ?
106
+ base->loadShellEnvvars :
107
+ add->loadShellEnvvars;
108
+ config->bufferUpload =
109
+ (add->bufferUpload == DirConfig::UNSET) ?
110
+ base->bufferUpload :
111
+ add->bufferUpload;
112
+ config->appType =
113
+ (add->appType == NULL) ?
114
+ base->appType :
115
+ add->appType;
116
+ config->startupFile =
117
+ (add->startupFile == NULL) ?
118
+ base->startupFile :
119
+ add->startupFile;
120
+ config->stickySessions =
121
+ (add->stickySessions == DirConfig::UNSET) ?
122
+ base->stickySessions :
123
+ add->stickySessions;
124
+ config->stickySessionsCookieName =
125
+ (add->stickySessionsCookieName == DirConfig::UNSET) ?
126
+ base->stickySessionsCookieName :
127
+ add->stickySessionsCookieName;
128
+ config->spawnMethod =
129
+ (add->spawnMethod == NULL) ?
130
+ base->spawnMethod :
131
+ add->spawnMethod;
132
+ config->showVersionInHeader =
133
+ (add->showVersionInHeader == DirConfig::UNSET) ?
134
+ base->showVersionInHeader :
135
+ add->showVersionInHeader;
136
+ config->friendlyErrorPages =
137
+ (add->friendlyErrorPages == DirConfig::UNSET) ?
138
+ base->friendlyErrorPages :
139
+ add->friendlyErrorPages;
140
+ config->restartDir =
141
+ (add->restartDir == NULL) ?
142
+ base->restartDir :
143
+ add->restartDir;
144
+ config->appGroupName =
145
+ (add->appGroupName == NULL) ?
146
+ base->appGroupName :
147
+ add->appGroupName;
148
+ config->forceMaxConcurrentRequestsPerProcess =
149
+ (add->forceMaxConcurrentRequestsPerProcess == UNSET_INT_VALUE) ?
150
+ base->forceMaxConcurrentRequestsPerProcess :
151
+ add->forceMaxConcurrentRequestsPerProcess;
152
+ config->lveMinUid =
153
+ (add->lveMinUid == UNSET_INT_VALUE) ?
154
+ base->lveMinUid :
155
+ add->lveMinUid;