Created
June 20, 2011 21:59
-
-
Save glarizza/1036702 to your computer and use it in GitHub Desktop.
passenger vhost config
This file contains hidden or 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
| # this is totally hardcoded for both the ruby and puppet version | |
| LoadModule passenger_module <%= gem_path %>passenger-<%= passenger_version %>/ext/apache2/mod_passenger.so | |
| PassengerRoot <%= gem_path %>passenger-<%= passenger_version %> | |
| PassengerRuby /usr/bin/ruby | |
| # you probably want to tune these settings | |
| PassengerHighPerformance on | |
| PassengerMaxPoolSize 12 | |
| PassengerPoolIdleTime 1500 | |
| # PassengerMaxRequests 1000 | |
| PassengerStatThrottleRate 120 | |
| RailsAutoDetect On | |
| <VirtualHost *:<%= dashboard_port %>> | |
| ServerName <%= name %> | |
| DocumentRoot <%= docroot %> | |
| RailsBaseURI / | |
| <Directory <%= docroot %>> | |
| Options None | |
| </Directory> | |
| <Location "/"> | |
| Order allow,deny | |
| Allow from <%= ipaddress %> | |
| Satisfy any | |
| AuthName "Puppet Dashboard" | |
| AuthType Basic | |
| AuthUserFile /etc/apache2/htpasswd | |
| require valid-user | |
| #AllowOverride AuthConfig | |
| </Location> | |
| ErrorLog /var/log/apache2/<%= name %>_error.log | |
| LogLevel warn | |
| CustomLog /var/log/apache2/<%= name %>_access.log combined | |
| ServerSignature Off | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment