Created
October 24, 2011 13:45
-
-
Save madhums/1309061 to your computer and use it in GitHub Desktop.
passenger apache conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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