diff options
Diffstat (limited to 'www-apache/passenger/files/30_mod_passenger.conf')
-rw-r--r-- | www-apache/passenger/files/30_mod_passenger.conf | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/www-apache/passenger/files/30_mod_passenger.conf b/www-apache/passenger/files/30_mod_passenger.conf new file mode 100644 index 000000000000..4cf0a29f75c6 --- /dev/null +++ b/www-apache/passenger/files/30_mod_passenger.conf @@ -0,0 +1,39 @@ +<IfDefine PASSENGER> +LoadModule passenger_module modules/mod_passenger.so + +# The location to the Passenger spawn server. This configuration option is +# essential to Passenger. The correct value is given by the ebuild, and should +# usually not be changed manually. +RailsSpawnServer /usr/bin/passenger-spawn-server + +# This option allows one to specify the Ruby interpreter to use. +RailsRuby /usr/bin/ruby18 + +# Whether Passenger should automatically detect whether a virtual host's +# document root is a Ruby on Rails application. +RailsAutoDetect On + +# The maximum number of Ruby on Rails application instances that may be +# simultaneously active. A larger number results in higher memory usage, but +# improved ability to handle concurrent HTTP clients. +RailsMaxPoolSize 20 + +# The maximum number of seconds that a Ruby on Rails application instance may +# be idle. That is, if an application instance hasn't done anything after the +# given number of seconds, then it will be shutdown in order to conserve +# memory. +RailsPoolIdleTime 120 + +# When the RailsUserSwitching option is enabled a Rails application is started +# as the owner of the file config/environment.rb. So if +# /home/webapps/foo/config/environment.rb is owned by joe, then Passenger will +# launch the corresponding Rails application as joe as well. +RailsUserSwitching On + +# Under no circumstances will Rails applications be run as root. If +# environment.rb is owned by root or by an unknown user, then the Rails +# application will run as the user specified by RailsDefaultUser. +RailsDefaultUser apache +</IfDefine> + +# vim: ts=4 filetype=apache |