Skip to content

Instantly share code, notes, and snippets.

@madhums
Created October 24, 2011 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save madhums/1309061 to your computer and use it in GitHub Desktop.
Save madhums/1309061 to your computer and use it in GitHub Desktop.
passenger apache conf
# /etc/apache2/sites-enabled/000-default
PassengerMaxPoolSize 15
PassengerPoolIdleTime 0
PassengerStatThrottleRate 3600
PassengerMaxRequests 100
<VirtualHost *:80>
ServerName localhost
ServerAlias project
PassengerMinInstances 3
RackEnv development
RailsEnv development
RailsFrameworkSpawnerIdleTime 0
RailsAppSpawnerIdleTime 0
AllowEncodedSlashes on
RewriteEngine on
PassengerAllowEncodedSlashes on
DocumentRoot /home/madhu/work/project/public
<Directory "/home/madhu/work/project/public">
AllowOverride all
Options -MultiViews
</Directory>
SetEnv GEM_HOME /home/madhu/.rvm/gems/ree-1.8.7-2011.03@project
SetEnv GEM_PATH /home/madhu/.rvm/gems/ree-1.8.7-2011.03@project:/home/madhu/.rvm/gems/ree-1.8.7-2011.03@global
PassengerHighPerformance on
</VirtualHost>
PassengerPreStart http://project/
LoadModule passenger_module /home/madhu/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
PassengerRoot /home/madhu/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.9
PassengerRuby /home/madhu/.rvm/wrappers/ruby-1.9.2-p290@global/ruby
<VirtualHost *:80>
ServerName localhost
ServerAlias project
PassengerMinInstances 3
RackEnv development
RailsEnv development
RailsFrameworkSpawnerIdleTime 0
RailsAppSpawnerIdleTime 0
AllowEncodedSlashes on
RewriteEngine on
PassengerAllowEncodedSlashes on
DocumentRoot /home/madhu/work/project/public
<Directory "/home/madhu/work/project/public">
AllowOverride all
Options -MultiViews
</Directory>
SetEnv GEM_HOME /home/madhu/.rvm/gems/ruby-1.9.2-p290@project
SetEnv GEM_PATH /home/madhu/.rvm/gems/ruby-1.9.2-p290@project:/home/madhu/.rvm/gems/ruby-1.9.2-p290@global
PassengerHighPerformance on
</VirtualHost>
# /etc/hosts
127.0.0.1 project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment