0
@@ -377,12 +377,29 @@ and should usually not be changed manually.
0
This required option may only occur once, in the global server configuration.
0
=== PassengerRuby <filename> ===
0
This option allows one to specify the Ruby interpreter to use.
0
This option may only occur once, in the global server configuration.
0
+[[PassengerUserSwitching]]
0
+=== PassengerUserSwitching <on|off> ===
0
+Whether to enable <<user_switching,user switching support>>.
0
+This option may only occur once, in the global server configuration.
0
+The default value is 'on'.
0
+[[PassengerDefaultUser]]
0
+=== PassengerDefaultUser <username> ===
0
+Passenger enables <<user_switching,user switching support>> by default.
0
+This configuration option allows one to specify which user Rails/Rack
0
+applications must run as, if user switching fails or is disabled.
0
+This option may only occur once, in the global server configuration.
0
+The default value is 'nobody'.
0
=== Ruby on Rails-specific options ===
0
==== RailsAutoDetect <on|off> ====
0
@@ -532,22 +549,6 @@ mileage may vary.
0
This option may only occur once, in the global server configuration.
0
The default value is '120'.
0
-==== RailsUserSwitching <on|off> ====
0
-Whether to enable <<user_switching,user switching support>>.
0
-This option may only occur once, in the global server configuration.
0
-The default value is 'on'.
0
-==== RailsDefaultUser <username> ====
0
-Passenger enables <<user_switching,user switching support>> by default.
0
-This configuration option allows one to specify which user Rails
0
-applications must run as, if user switching fails or is disabled.
0
-This option may only occur once, in the global server configuration.
0
-The default value is 'nobody'.
0
=== Rack-specific options ===
0
==== RackAutoDetect <on|off> ====
0
@@ -600,6 +601,20 @@ Rack applications are run, very similar to `RAILS_ENV`.
0
This option may occur once, in the global server configuration or in a virtual host
0
configuration block. The default value is 'production'.
0
+=== Deprecated options ===
0
+The following options have been deprecated, but are still supported for backwards
0
+Deprecated in favor of <<PassengerRuby,PassengerRuby>>.
0
+==== RailsUserSwitching ====
0
+Deprecated in favor of <<PassengerUserSwitching,PassengerUserSwitching>>.
0
+==== RailsDefaultUser ====
0
+Deprecated in favor of <<PassengerDefaultUser,PassengerDefaultUser>>.
0
@@ -951,8 +966,9 @@ example, Joe's PHP application will be able to read Jane's PHP application's
0
passwords. This is obviously undesirable on many servers.
0
Passenger solves this problem by implementing 'user switching'. A Rails
0
-application is started as the owner of the file 'config/environment.rb'. So if
0
-'/home/webapps/foo/config/environment.rb' is owned by 'joe', then Passenger
0
+application is started as the owner of the file 'config/environment.rb',
0
+and a Rack application is started as the owner of the file 'config.ru'.
0
+So if '/home/webapps/foo/config/environment.rb' is owned by 'joe', then Passenger
0
will launch the corresponding Rails application as 'joe' as well.
0
This behavior is the default, and you don't need to configure anything. But
0
@@ -960,24 +976,28 @@ there are things that you should keep in mind:
0
- The owner of 'environment.rb' must have read access to the Rails application's
0
folder, and read/write access to the Rails application's 'logs' folder.
0
+ Likewise, the owner of 'config.ru' must have read access to the Rack application's
0
- This feature is only available if Apache is started by 'root'. This is the
0
case on most Apache installations.
0
-- Under no circumstances will Rails applications be run as 'root'. If
0
- 'environment.rb' is owned as root or by an unknown user, then the Rails
0
- application will run as the user specified by
0
- <<RailsDefaultUser,RailsDefaultUser>>.
0
+- Under no circumstances will applications be run as 'root'. If
0
+ 'environment.rb'/'config.ru' is owned as root or by an unknown user, then the
0
+ Rails/Rack application will run as the user specified by
0
+ <<PassengerDefaultUser,PassengerDefaultUser>>.
0
User switching can be disabled with the
0
-<<
RailsUserSwitching,RailsUserSwitching>> option.
0
+<<
PassengerUserSwitching,PassengerUserSwitching>> option.
0
[[reducing_memory_usage]]
0
-=== Reducing memory consumption of Ruby on Rails app
s by 33% ===
0
+=== Reducing memory consumption of Ruby on Rails app
lications by 33% ===
0
-Is it possible to reduce memory consumption of your Rails app
s by 33% on average,
0
+Is it possible to reduce memory consumption of your Rails app
lications by 33% on average,
0
by using http://www.rubyenterpriseedition.com/[Ruby Enterprise Edition].
0
Please visit the website for details.
0
+Note that this feature does not apply to Rack applications.
0
=== Moving Passenger to a different directory ===
0
It is possible to relocate the Passenger files to a different directory. It
Comments
No one has commented yet.