passenger 4.0.19 → 4.0.20
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.
- checksums.yaml +15 -0
- checksums.yaml.gz.asc +12 -0
- data.tar.gz.asc +7 -7
- data/NEWS +22 -0
- data/bin/passenger-install-apache2-module +2 -2
- data/bin/passenger-install-nginx-module +2 -2
- data/build/agents.rb +6 -0
- data/build/apache2.rb +1 -0
- data/build/basics.rb +2 -2
- data/build/cplusplus_support.rb +6 -1
- data/build/cxx_tests.rb +1 -0
- data/build/nginx.rb +1 -0
- data/build/packaging.rb +1 -1
- data/dev/copy_boost_headers.rb +1 -0
- data/doc/Users guide Apache.idmap.txt +56 -54
- data/doc/Users guide Apache.txt +22 -3
- data/doc/Users guide Nginx.idmap.txt +52 -50
- data/doc/Users guide Nginx.txt +22 -3
- data/ext/apache2/Configuration.hpp +4 -0
- data/ext/apache2/ConfigurationCommands.cpp +6 -0
- data/ext/apache2/ConfigurationFields.hpp +6 -4
- data/ext/apache2/ConfigurationSetters.cpp +11 -0
- data/ext/apache2/CreateDirConfig.cpp +1 -0
- data/ext/apache2/Hooks.cpp +2 -0
- data/ext/apache2/MergeDirConfig.cpp +7 -0
- data/ext/boost/type_traits/detail/common_type_imp.hpp +333 -0
- data/ext/boost/type_traits/detail/has_binary_operator.hpp +229 -0
- data/ext/boost/type_traits/detail/has_postfix_operator.hpp +202 -0
- data/ext/boost/type_traits/detail/has_prefix_operator.hpp +210 -0
- data/ext/boost/type_traits/detail/is_function_ptr_tester.hpp +654 -0
- data/ext/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +2759 -0
- data/ext/boost/type_traits/detail/wrap.hpp +18 -0
- data/ext/common/Constants.h +1 -1
- data/ext/common/Utils/StrIntUtils.cpp +1 -1
- data/ext/common/agents/HelperAgent/Main.cpp +18 -1
- data/ext/common/agents/HelperAgent/RequestHandler.h +3 -0
- data/ext/common/agents/SpawnPreparer.cpp +25 -0
- data/ext/common/agents/TempDirToucher.c +357 -0
- data/ext/common/agents/Watchdog/Main.cpp +38 -0
- data/ext/nginx/CacheLocationConfig.c +21 -1
- data/ext/nginx/CacheLocationConfig.c.erb +1 -1
- data/ext/nginx/ConfigurationCommands.c +10 -0
- data/ext/nginx/ConfigurationFields.h +18 -16
- data/ext/nginx/ConfigurationFields.h.erb +11 -6
- data/ext/nginx/CreateLocationConfig.c +4 -0
- data/ext/nginx/MergeLocationConfig.c +6 -0
- data/helper-scripts/node-loader.js +6 -2
- data/lib/phusion_passenger.rb +1 -1
- data/lib/phusion_passenger/{rails3_extensions → active_support3_extensions}/init.rb +10 -8
- data/lib/phusion_passenger/apache2/config_options.rb +5 -0
- data/lib/phusion_passenger/loader_shared_helpers.rb +61 -7
- data/lib/phusion_passenger/nginx/config_options.rb +4 -0
- data/lib/phusion_passenger/platform_info/apache.rb +6 -1
- data/lib/phusion_passenger/platform_info/compiler.rb +29 -2
- data/lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb +4 -4
- data/lib/phusion_passenger/platform_info/ruby.rb +7 -3
- data/lib/phusion_passenger/public_api.rb +4 -4
- data/lib/phusion_passenger/standalone/command.rb +10 -0
- data/lib/phusion_passenger/standalone/runtime_installer.rb +2 -2
- data/lib/phusion_passenger/standalone/start_command.rb +14 -8
- data/lib/phusion_passenger/utils/unseekable_socket.rb +52 -0
- data/resources/templates/standalone/config.erb +11 -0
- metadata +14 -15
- metadata.gz.asc +7 -7
- data/helper-scripts/touch-dir.sh +0 -48
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OWI3NGM4NmQ1MmJmNjRiYWNmZDFkNDFjZWZkZjg4YWEyMzllOTk1OA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NDhlZmE4OTZiYjE1ZGM4ZjY5MGQ4NmJmNDNlY2Q2MjZkMTA3NTRjYw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OGI1ZjJjZTU2YjRhYjk3ODZmNWM1NWEzNzQ2YWMyOGU2MjFmMjEwODhjNjNj
|
10
|
+
ZGU4MTI1ZWI0YTA0Yjk2MTdmYWFkODA2Yzc0NzQxODc2NjJhZjQ5OTEyMTIx
|
11
|
+
NjY0Njg3MDI2N2E2MmI1NjgwZDdiMjQxYTU4M2ViZTJjZTFkZDk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZDlhMjFiYjE5OTY1MTMyM2VmNjIzYmM5MjE1NzRiMTFlMzRiODZiMzE4Mzgz
|
14
|
+
NTkzMTY2NjRmMjM3ZDc0ZGIzZWYwNTNlZjUwNmIyMWQwOTA5NzI0YzI3OTRi
|
15
|
+
ODY1ZDE5MGMyMGM4YzM4YzIwOWE4MGM5NmIwYjcyMmNjYWY3YWI=
|
checksums.yaml.gz.asc
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
2
|
+
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
|
+
Comment: GPGTools - http://gpgtools.org
|
4
|
+
|
5
|
+
iQEcBAABAgAGBQJSVR2DAAoJECrHRaUKISqMb4gH/0KcDsUi/7/IEPR9w+AUNXbi
|
6
|
+
xop3xQSJqggT9HDPWhhsh0thwPVdAwWC8etDd/99RMEW6KQMnSwBr9DP8TbrjG5C
|
7
|
+
LdstIpTF11l7lcqpc4cNdbq7giE2iriyOWjQzwKEr2UpAgNzbjCVM09Wz6KqIJrV
|
8
|
+
aFUXSybIsr3N9gnPqdPwJ6Gp/0QyPDyMVXcNZzcOVvLlZ1EwNHDIsjBG1V0t+8o0
|
9
|
+
HLCLb5FXvVrZ5DujwXfvaEeVLz+rpu7RpXrTxqbW5rHjFMn+oYgdMxidEavDgXBD
|
10
|
+
TOUpkexYX/fUZd2EKxJWS+otVzN9HV7qnx1YKJQOwyVLfkK6kDgqOXQgPQYz+G8=
|
11
|
+
=lBSY
|
12
|
+
-----END PGP SIGNATURE-----
|
data.tar.gz.asc
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
5
|
+
iQEcBAABAgAGBQJSVR2DAAoJECrHRaUKISqMiO0H/AiYTBtbpvN5Q/WIYRo99pu5
|
6
|
+
+VyZpUvISKG7+Mdqb8hEL+O/TvGYQsiCliOhF2UWAjTUdm+fXOXcs5KXWJV3wJZU
|
7
|
+
+mzKZ9Xy0a6HLVyLQV3v+bMe5hNBDFx5YI4js0Vlhx9SGV3NQwxIgQ3sfqmmbdtw
|
8
|
+
ieKmrLakgDuOHFxPmAibEL5Lv4R+rRlhldsoDoVmp8zuLJcxobaNkNkS1nXqvhha
|
9
|
+
NeQjYetL4BisdneEwt1BeZusNHAON5Blt88SgQfbSkPB6Zz7PXxiuCRWfdxkJ9/d
|
10
|
+
K9w5TTHXf+TL+OfnRZ9Aaz8vdcRdihNNaPWURgDwhGl2Q9k1BKmIPfxxfZsnBtY=
|
11
|
+
=LZ+T
|
12
12
|
-----END PGP SIGNATURE-----
|
data/NEWS
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
Release 4.0.20
|
2
|
+
--------------
|
3
|
+
|
4
|
+
* Fixed a bug in Phusion Passenger Standalone's daemon mode. When in daemon
|
5
|
+
mode, the Nginx temporary directory was deleted prematurely, causing some
|
6
|
+
POST requests to fail. This was a regression that was introduced in 4.0.15
|
7
|
+
as part of an optimization.
|
8
|
+
* Fixed compilation problems on Solaris 10 with Sun Studio 12.3.
|
9
|
+
* Improved detection of RVM problems.
|
10
|
+
* It is now possible to log the request method to Union Station.
|
11
|
+
* Introduced a new option, `PassengerLoadShellEnvvars` (Apache) and
|
12
|
+
`passenger_load_shell_envvars` (Nginx). This allows enabling or disabling
|
13
|
+
the loading of bashrc before spawning the application.
|
14
|
+
* [Enterprise] Fixed a packaging problem which caused the flying-passenger
|
15
|
+
executable not to be properly included in the bin path.
|
16
|
+
* [Enterprise] Fixed a race condition which sometimes causes the Flying
|
17
|
+
Passenger socket to be deleted after a restart. Fixes issue #939.
|
18
|
+
* [Enterprise] The `byebug` gem is now supported for debugging on Ruby 2.0.
|
19
|
+
The byebug gem requires a patch before this works:
|
20
|
+
https://github.com/deivid-rodriguez/byebug/pull/29
|
21
|
+
|
22
|
+
|
1
23
|
Release 4.0.19
|
2
24
|
--------------
|
3
25
|
|
data/build/agents.rb
CHANGED
@@ -176,6 +176,12 @@ file AGENT_OUTPUT_DIR + 'EnvPrinter' => 'ext/common/agents/EnvPrinter.c' do
|
|
176
176
|
'ext/common/agents/EnvPrinter.c')
|
177
177
|
end
|
178
178
|
|
179
|
+
file AGENT_OUTPUT_DIR + 'TempDirToucher' => 'ext/common/agents/TempDirToucher.c' do
|
180
|
+
sh "mkdir -p #{AGENT_OUTPUT_DIR}" if !File.directory?(AGENT_OUTPUT_DIR)
|
181
|
+
create_c_executable(AGENT_OUTPUT_DIR + 'TempDirToucher',
|
182
|
+
'ext/common/agents/TempDirToucher.c')
|
183
|
+
end
|
184
|
+
|
179
185
|
task 'common:clean' do
|
180
186
|
sh "rm -rf #{AGENT_OUTPUT_DIR}"
|
181
187
|
end
|
data/build/apache2.rb
CHANGED
data/build/basics.rb
CHANGED
@@ -132,8 +132,8 @@ MAINTAINER_NAME = "Phusion"
|
|
132
132
|
MAINTAINER_EMAIL = "info@phusion.nl"
|
133
133
|
|
134
134
|
OPTIMIZE = boolean_option("OPTIMIZE")
|
135
|
-
CC = maybe_wrap_in_ccache(
|
136
|
-
CXX = maybe_wrap_in_ccache(
|
135
|
+
CC = maybe_wrap_in_ccache(PhusionPassenger::PlatformInfo.cc)
|
136
|
+
CXX = maybe_wrap_in_ccache(PhusionPassenger::PlatformInfo.cxx)
|
137
137
|
LIBEXT = PlatformInfo.library_extension
|
138
138
|
USE_DMALLOC = boolean_option('USE_DMALLOC')
|
139
139
|
USE_EFENCE = boolean_option('USE_EFENCE')
|
data/build/cplusplus_support.rb
CHANGED
@@ -87,5 +87,10 @@ def create_shared_library(target, sources, flags = "#{EXTRA_PRE_CXXFLAGS} #{EXTR
|
|
87
87
|
else
|
88
88
|
shlib_flag = "-shared"
|
89
89
|
end
|
90
|
-
|
90
|
+
if PhusionPassenger::PlatformInfo.cc_is_sun_studio?
|
91
|
+
fPIC = "-KPIC"
|
92
|
+
else
|
93
|
+
fPIC = "-fPIC"
|
94
|
+
end
|
95
|
+
run_compiler "#{CXX} #{shlib_flag} #{sources} #{fPIC} -o #{target} #{flags}"
|
91
96
|
end
|
data/build/cxx_tests.rb
CHANGED
@@ -211,6 +211,7 @@ dependencies = [
|
|
211
211
|
'test/support/allocate_memory',
|
212
212
|
NATIVE_SUPPORT_TARGET,
|
213
213
|
AGENT_OUTPUT_DIR + 'SpawnPreparer',
|
214
|
+
AGENT_OUTPUT_DIR + 'TempDirToucher',
|
214
215
|
AGENT_OUTPUT_DIR + 'EnvPrinter'
|
215
216
|
].compact
|
216
217
|
desc "Run unit tests for the Apache 2 and Nginx C++ components"
|
data/build/nginx.rb
CHANGED
@@ -41,6 +41,7 @@ task :nginx_without_native_support => [
|
|
41
41
|
AGENT_OUTPUT_DIR + 'PassengerWatchdog',
|
42
42
|
AGENT_OUTPUT_DIR + 'PassengerLoggingAgent',
|
43
43
|
AGENT_OUTPUT_DIR + 'SpawnPreparer',
|
44
|
+
AGENT_OUTPUT_DIR + 'TempDirToucher',
|
44
45
|
COMMON_LIBRARY.only(*NGINX_LIBS_SELECTOR).link_objects
|
45
46
|
].flatten
|
46
47
|
|
data/build/packaging.rb
CHANGED
@@ -198,7 +198,7 @@ task 'package:release' => ['package:set_official', 'package:gem', 'package:tarba
|
|
198
198
|
command = "cd /srv/passenger_autobuilder/app && " +
|
199
199
|
"/tools/silence-unless-failed chpst -l /tmp/passenger_autobuilder.lock " +
|
200
200
|
"./autobuild-with-pbuilder #{git_url} passenger-enterprise --tag=#{tag}"
|
201
|
-
ssh
|
201
|
+
sh "ssh psg_autobuilder_run@juvia-helper.phusion.nl at now <<<'#{command}'"
|
202
202
|
|
203
203
|
puts "Initiating building of Debian packages"
|
204
204
|
command = "cd /srv/passenger_apt_automation && " +
|
data/dev/copy_boost_headers.rb
CHANGED
@@ -130,113 +130,115 @@
|
|
130
130
|
|
131
131
|
6.6. PassengerSpawnMethod <string> => passengerspawnmethod-string--sodg2y
|
132
132
|
|
133
|
-
6.7.
|
133
|
+
6.7. passengerLoadShellEnvvars <on|off> => passengerloadshellenvvars-on-off--1290yz1
|
134
134
|
|
135
|
-
6.8.
|
135
|
+
6.8. PassengerEnabled <on|off> => passengerenabled-on-off--74rzth
|
136
136
|
|
137
|
-
6.9.
|
137
|
+
6.9. PassengerTempDir <directory> => passengertempdir-directory--68h2ng
|
138
138
|
|
139
|
-
6.10.
|
139
|
+
6.10. PassengerUploadBufferDir <directory> => passengeruploadbufferdir-directory--kdr8at
|
140
140
|
|
141
|
-
6.11.
|
141
|
+
6.11. PassengerRestartDir <directory> => passengerrestartdir-directory--1fmhmv0
|
142
142
|
|
143
|
-
6.12.
|
143
|
+
6.12. PassengerRollingRestarts <on|off> => passengerrollingrestarts
|
144
144
|
|
145
|
-
6.13.
|
145
|
+
6.13. PassengerResistDeploymentErrors <on|off> => passengerresistdeploymenterrors
|
146
146
|
|
147
|
-
6.
|
147
|
+
6.14. Security options => security-options-1pb75ho
|
148
148
|
|
149
|
-
6.
|
149
|
+
6.14.1. PassengerUserSwitching <on|off> => passengeruserswitching
|
150
150
|
|
151
|
-
6.
|
151
|
+
6.14.2. PassengerUser <username> => passengeruser
|
152
152
|
|
153
|
-
6.
|
153
|
+
6.14.3. PassengerGroup <group name> => passengergroup
|
154
154
|
|
155
|
-
6.
|
155
|
+
6.14.4. PassengerDefaultUser <username> => passengerdefaultuser
|
156
156
|
|
157
|
-
6.
|
157
|
+
6.14.5. PassengerDefaultGroup <group name> => passengerdefaultgroup
|
158
158
|
|
159
|
-
6.14.
|
159
|
+
6.14.6. PassengerFriendlyErrorPages <on|off> => passengerfriendlyerrorpages
|
160
160
|
|
161
|
-
6.
|
161
|
+
6.15. Resource control and optimization options => resource-control-and-optimization-options-zu2f7u
|
162
162
|
|
163
|
-
6.
|
163
|
+
6.15.1. PassengerMaxPoolSize <integer> => passengermaxpoolsize-integer--am64q8
|
164
164
|
|
165
|
-
6.
|
165
|
+
6.15.2. PassengerMinInstances <integer> => passengermininstances-integer--wegq6b
|
166
166
|
|
167
|
-
6.
|
167
|
+
6.15.3. PassengerMaxInstances <integer> => passengermaxinstances
|
168
168
|
|
169
|
-
6.
|
169
|
+
6.15.4. PassengerMaxInstancesPerApp <integer> => passengermaxinstancesperapp
|
170
170
|
|
171
|
-
6.
|
171
|
+
6.15.5. PassengerPoolIdleTime <integer> => passengerpoolidletime-integer--a3gunq
|
172
172
|
|
173
|
-
6.
|
173
|
+
6.15.6. PassengerMaxPreloaderIdleTime <integer> => railsappspawneridletime-integer--1awgog1
|
174
174
|
|
175
|
-
6.
|
175
|
+
6.15.7. PassengerStartTimeout <seconds> => passengerstarttimeout-seconds--ihnfku
|
176
176
|
|
177
|
-
6.
|
177
|
+
6.15.8. PassengerConcurrencyModel <process|thread> => passengerconcurrencymodel-process-thread--1eipofj
|
178
178
|
|
179
|
-
6.
|
179
|
+
6.15.9. PassengerThreadCount <number> => passengerthreadcount-number--10jl64a
|
180
180
|
|
181
|
-
6.
|
181
|
+
6.15.10. PassengerMaxRequests <integer> => passengermaxrequests-integer--17qkw9n
|
182
182
|
|
183
|
-
6.
|
183
|
+
6.15.11. PassengerMaxRequestTime <seconds> => passengermaxrequesttime-seconds--127v1i2
|
184
184
|
|
185
|
-
6.
|
185
|
+
6.15.12. PassengerMemoryLimit <integer> => passengermemorylimit-integer--18irza1
|
186
186
|
|
187
|
-
6.
|
187
|
+
6.15.13. PassengerStatThrottleRate <integer> => passengerstatthrottlerate-integer--1dcfda3
|
188
188
|
|
189
|
-
6.14.
|
189
|
+
6.15.14. PassengerPreStart <url> => passengerprestart-url--1utb57k
|
190
190
|
|
191
|
-
6.15.
|
191
|
+
6.15.15. PassengerHighPerformance <on|off> => passengerhighperformance-on-off--nvfa86
|
192
192
|
|
193
|
-
6.
|
193
|
+
6.16. Connection handling options => connection-handling-options-1k3zd1a
|
194
194
|
|
195
|
-
6.
|
195
|
+
6.16.1. PassengerBufferResponse <on|off> => passengerbufferresponse-on-off--1y7ilka
|
196
196
|
|
197
|
-
6.16.
|
197
|
+
6.16.2. passenger_max_request_queue_size <number> => passenger-max-request-queue-size-number--1f1uocd
|
198
198
|
|
199
|
-
6.
|
199
|
+
6.17. Compatibility options => compatibility-options-8jve5a
|
200
200
|
|
201
|
-
6.
|
201
|
+
6.17.1. PassengerResolveSymlinksInDocumentRoot <on|off> => passengerresolvesymlinksindocumentroot-on-off--1r0qcp8
|
202
202
|
|
203
|
-
6.17.
|
203
|
+
6.17.2. PassengerAllowEncodedSlashes <on|off> => passengerallowencodedslashes-on-off--1y3s1ww
|
204
204
|
|
205
|
-
6.
|
205
|
+
6.18. Logging and debugging options => logging-and-debugging-options-el2cuc
|
206
206
|
|
207
|
-
6.
|
207
|
+
6.18.1. PassengerLogLevel <integer> => passengerloglevel-integer--s3kbil
|
208
208
|
|
209
|
-
6.
|
209
|
+
6.18.2. PassengerDebugLogFile <filename> => passengerdebuglogfile-filename--1wjm2j1
|
210
210
|
|
211
|
-
6.18.
|
211
|
+
6.18.3. PassengerDebugger <on|off> => passengerdebugger-on-off--19you7e
|
212
212
|
|
213
|
-
6.
|
213
|
+
6.19. Classic Ruby on Rails (⇐ 2.x)-specific options => ruby-on-rails-specific-options-1t10wfu
|
214
214
|
|
215
|
-
6.
|
215
|
+
6.19.1. RailsBaseURI <uri> => railsbaseuri-uri--1txrw3k
|
216
216
|
|
217
|
-
6.19.
|
217
|
+
6.19.2. RailsEnv <string> => railsenv-string--1b0xxvu
|
218
218
|
|
219
|
-
6.
|
219
|
+
6.20. Rack and Rails >= 3 specific options => rack-specific-options-wk9qzt
|
220
220
|
|
221
|
-
6.
|
221
|
+
6.20.1. RackBaseURI <uri> => rackbaseuri-uri--1to24pj
|
222
222
|
|
223
|
-
6.20.
|
223
|
+
6.20.2. RackEnv <string> => rackenv-string--vve9py
|
224
224
|
|
225
|
-
6.
|
225
|
+
6.21. Deprecated or removed options => deprecated-options-pm9m57
|
226
226
|
|
227
|
-
6.
|
227
|
+
6.21.1. RailsRuby => railsruby-ht09ei
|
228
228
|
|
229
|
-
6.
|
229
|
+
6.21.2. RailsUserSwitching => railsuserswitching-1npx8y4
|
230
230
|
|
231
|
-
6.
|
231
|
+
6.21.3. RailsDefaultUser => railsdefaultuser-19j7n3m
|
232
232
|
|
233
|
-
6.
|
233
|
+
6.21.4. RailsAllowModRewrite => railsallowmodrewrite-1vkziro
|
234
234
|
|
235
|
-
6.
|
235
|
+
6.21.5. RailsSpawnMethod => railsspawnmethod-1aljgpa
|
236
236
|
|
237
|
-
6.
|
237
|
+
6.21.6. RailsAutoDetect, RackAutoDetect and WsgiAutoDetect => railsautodetect-rackautodetect-and-wsgiautodetect-1qgakzs
|
238
238
|
|
239
|
-
6.
|
239
|
+
6.21.7. RailsAppSpawnerIdleTime => railsappspawneridletime-heh41r
|
240
|
+
|
241
|
+
6.21.8. RailsFrameworkSpawnerIdleTime => railsframeworkspawneridletime-adcf9k
|
240
242
|
|
241
243
|
7. Troubleshooting => troubleshooting-2ihihi
|
242
244
|
|
data/doc/Users guide Apache.txt
CHANGED
@@ -612,6 +612,24 @@ This option may occur in the following places:
|
|
612
612
|
|
613
613
|
In each place, it may be specified at most once. The default value is 'smart'.
|
614
614
|
|
615
|
+
[[PassengerLoadShellEnvvars]]
|
616
|
+
=== passengerLoadShellEnvvars <on|off> ===
|
617
|
+
:version: 4.0.20
|
618
|
+
include::users_guide_snippets/since_version.txt[]
|
619
|
+
|
620
|
+
Enables or disables the loading of shell environment variables before spawning the application.
|
621
|
+
|
622
|
+
If this option is turned on, and the user's shell is `bash`, then applications are loaded by running them with `bash -l -c`. Otherwise, they are loaded by running them directly from the `PassengerHelperAgent` process.
|
623
|
+
|
624
|
+
This option may occur in the following places:
|
625
|
+
|
626
|
+
* In the global server configuration.
|
627
|
+
* In a virtual host configuration block.
|
628
|
+
* In a `<Directory>` or `<Location>` block.
|
629
|
+
* In '.htaccess', if `AllowOverride Options` is on.
|
630
|
+
|
631
|
+
In each place, it may be specified at most once. The default value is 'on'.
|
632
|
+
|
615
633
|
[[PassengerEnabled]]
|
616
634
|
=== PassengerEnabled <on|off> ===
|
617
635
|
You can set this option to 'off' to completely disable Phusion Passenger for
|
@@ -1788,13 +1806,14 @@ This option may only occur once, in the global server configuration.
|
|
1788
1806
|
include::users_guide_snippets/enterprise_only.txt[]
|
1789
1807
|
|
1790
1808
|
Turns support for application debugging on or off. In case of Ruby applications,
|
1791
|
-
turning this option on will cause them to load the `ruby-debug` gem (when on Ruby 1.8)
|
1792
|
-
|
1793
|
-
this to your Gemfile:
|
1809
|
+
turning this option on will cause them to load the `ruby-debug` gem (when on Ruby 1.8),
|
1810
|
+
the `debugger` gem (when on Ruby 1.9) or the `byebug` gem (when on Ruby 2.0). If you're
|
1811
|
+
using Bundler, you should add this to your Gemfile:
|
1794
1812
|
|
1795
1813
|
-------------------------------------------
|
1796
1814
|
gem 'ruby-debug', :platforms => :ruby_18
|
1797
1815
|
gem 'debugger', :platforms => :ruby_19
|
1816
|
+
gem 'byebug', :platforms => :ruby_20
|
1798
1817
|
-------------------------------------------
|
1799
1818
|
|
1800
1819
|
Once debugging is turned on, you can use the command `passenger-irb --debug <PID>` to attach an rdebug console to the application process with the given PID. Attaching will succeed once the application process executes a `debugger` command.
|
@@ -130,105 +130,107 @@
|
|
130
130
|
|
131
131
|
6.5. passenger_spawn_method <string> => passenger-spawn-method-string--1sc6njl
|
132
132
|
|
133
|
-
6.6.
|
133
|
+
6.6. passenger_load_shell_envvars <on|off> => passenger-load-shell-envvars-on-off--fw5u4l
|
134
134
|
|
135
|
-
6.7.
|
135
|
+
6.7. passenger_rolling_restarts <on|off> => passenger-rolling-restarts
|
136
136
|
|
137
|
-
6.8.
|
137
|
+
6.8. passenger_resist_deployment_errors <on|off> => passenger-resist-deployment-errors-on-off--k9yf1
|
138
138
|
|
139
|
-
6.9.
|
139
|
+
6.9. passenger_temp_dir <directory> => passenger-temp-dir-directory--1t3opri
|
140
140
|
|
141
|
-
6.10.
|
141
|
+
6.10. passenger_fly_with <socket filename> => passenger-fly-with-socket-filename--1amd1xn
|
142
142
|
|
143
|
-
6.
|
143
|
+
6.11. Important deployment options => important-deployment-options-av567
|
144
144
|
|
145
|
-
6.
|
145
|
+
6.11.1. passenger_enabled <on|off> => passenger-enabled-on-off--1rpb2t7
|
146
146
|
|
147
|
-
6.11.
|
147
|
+
6.11.2. passenger_base_uri <uri> => passenger-base-uri-uri--1xtuo50
|
148
148
|
|
149
|
-
6.
|
149
|
+
6.12. Connection handling options => connection-handling-options-8jgq90
|
150
150
|
|
151
|
-
6.
|
151
|
+
6.12.1. passenger_ignore_client_abort <on|off> => passenger-ignore-client-abort
|
152
152
|
|
153
|
-
6.
|
153
|
+
6.12.2. passenger_set_cgi_param <CGI environment name> <value> => passenger-set-cgi-param-cgi-environment-name-value--rx9gc0
|
154
154
|
|
155
|
-
6.
|
155
|
+
6.12.3. passenger_pass_header <header name> => passenger-pass-header-header-name--1cg31je
|
156
156
|
|
157
|
-
6.
|
157
|
+
6.12.4. passenger_buffer_response <on|off> => passenger-buffer-response
|
158
158
|
|
159
|
-
6.
|
159
|
+
6.12.5. passenger_buffer_size => passenger-buffer-size-1jfkq87
|
160
160
|
|
161
|
-
6.
|
161
|
+
6.12.6. passenger_buffers => passenger-busy-buffers
|
162
162
|
|
163
|
-
6.
|
163
|
+
6.12.7. passenger_busy_buffer_size => passenger-busy-buffer-size-124sj61
|
164
164
|
|
165
|
-
6.
|
165
|
+
6.12.8. passenger_intercept_errors <on|off> => passenger-intercept-errors-1uvcb9x
|
166
166
|
|
167
|
-
6.
|
167
|
+
6.12.9. passenger_max_request_queue_size <number> => passenger-max-request-queue-size-number--i0te1b
|
168
168
|
|
169
|
-
6.12.
|
169
|
+
6.12.10. passenger_request_queue_overflow_status_code <code> => passenger-request-queue-overflow-status-code-code--1wcwuxl
|
170
170
|
|
171
|
-
6.
|
171
|
+
6.13. Security options => security-options-1bv93g4
|
172
172
|
|
173
|
-
6.
|
173
|
+
6.13.1. passenger_user_switching <on|off> => passenger-user-switching-on-off--1p37u3l
|
174
174
|
|
175
|
-
6.
|
175
|
+
6.13.2. passenger_user <username> => passenger-user-username--b06ur7
|
176
176
|
|
177
|
-
6.
|
177
|
+
6.13.3. passenger_group <group name> => passenger-user-group-name--1fco4j7
|
178
178
|
|
179
|
-
6.
|
179
|
+
6.13.4. passenger_default_user <username> => passenger-default-user-username--1h6cdmf
|
180
180
|
|
181
|
-
6.
|
181
|
+
6.13.5. Passenger_default_group <group name> => passenger-default-group-group-name--1qxn2qa
|
182
182
|
|
183
|
-
6.
|
183
|
+
6.13.6. passenger_show_version_in_header <on|off> => passenger-show-version-in-header-on-off--2h49av
|
184
184
|
|
185
|
-
6.13.
|
185
|
+
6.13.7. passenger_friendly_error_pages <on|off> => passenger-friendly-error-pages-on-off--1ti1a0e
|
186
186
|
|
187
|
-
6.
|
187
|
+
6.14. Resource control and optimization options => resource-control-and-optimization-options-xd7evs
|
188
188
|
|
189
|
-
6.
|
189
|
+
6.14.1. passenger_max_pool_size <integer> => passenger-max-pool-size-integer--3jzefs
|
190
190
|
|
191
|
-
6.
|
191
|
+
6.14.2. passenger_min_instances <integer> => passenger-min-instances-integer--uclykt
|
192
192
|
|
193
|
-
6.
|
193
|
+
6.14.3. passenger_max_instances <integer> => passenger-max-instances
|
194
194
|
|
195
|
-
6.
|
195
|
+
6.14.4. passenger_max_instances_per_app <integer> => passenger-max-instances-per-app-integer--1xhbbne
|
196
196
|
|
197
|
-
6.
|
197
|
+
6.14.5. passenger_pool_idle_time <integer> => passenger-pool-idle-time-integer--xcw65o
|
198
198
|
|
199
|
-
6.
|
199
|
+
6.14.6. passenger_max_preloader_idle_time <integer> => rails-app-spawner-idle-time-integer--1xjqe4b
|
200
200
|
|
201
|
-
6.
|
201
|
+
6.14.7. passenger_start_timeout <seconds> => passenger-start-timeout-seconds--8xn504
|
202
202
|
|
203
|
-
6.
|
203
|
+
6.14.8. passenger_concurrency_model <process|thread> => passenger-concurrency-model-process-thread--brcvkk
|
204
204
|
|
205
|
-
6.
|
205
|
+
6.14.9. passenger_thread_count <number> => passenger-thread-count-number--1kd6ffy
|
206
206
|
|
207
|
-
6.
|
207
|
+
6.14.10. passenger_max_requests <integer> => passenger-max-requests-integer--sgzint
|
208
208
|
|
209
|
-
6.
|
209
|
+
6.14.11. passenger_max_request_time <seconds> => passenger-max-request-time-seconds--1htog2g
|
210
210
|
|
211
|
-
6.
|
211
|
+
6.14.12. passenger_memory_limit <integer> => passenger-memory-limit-integer--1ry7dwx
|
212
212
|
|
213
|
-
6.14.
|
213
|
+
6.14.13. passenger_pre_start <url> => passenger-pre-start-url--npldeb
|
214
214
|
|
215
|
-
6.
|
215
|
+
6.15. Logging and debugging options => logging-and-debugging-options-14e91ni
|
216
216
|
|
217
|
-
6.
|
217
|
+
6.15.1. passenger_log_level <integer> => passenger-log-level-integer--17snhon
|
218
218
|
|
219
|
-
6.
|
219
|
+
6.15.2. passenger_debug_log_file <filename> => passenger-debug-log-file-filename--21ubaj
|
220
220
|
|
221
|
-
6.15.
|
221
|
+
6.15.3. passenger_debugger <on|off> => passenger-debugger-on-off--1wkuq85
|
222
222
|
|
223
|
-
6.
|
223
|
+
6.16. Ruby on Rails-specific options => ruby-on-rails-specific-options-12vfokt
|
224
224
|
|
225
|
-
6.16.
|
225
|
+
6.16.1. rails_env <string> => rails-env-string--jlh7v9
|
226
226
|
|
227
|
-
6.
|
227
|
+
6.17. Rack and Rails >= 3 specific options => rack-specific-options-13yvdxs
|
228
228
|
|
229
|
-
6.17.
|
229
|
+
6.17.1. rack_env <string> => rack-env-string--tqmrt0
|
230
230
|
|
231
|
-
6.
|
231
|
+
6.18. Deprecated options => deprecated-options-1dtzo0g
|
232
|
+
|
233
|
+
6.18.1. rails_spawn_method => rails-spawn-method-17vdnpt
|
232
234
|
|
233
235
|
7. Analysis and system maintenance => analysis-and-system-maintenance-1nnlnj8
|
234
236
|
|