Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created June 20, 2011 21:59
Show Gist options
  • Select an option

  • Save glarizza/1036702 to your computer and use it in GitHub Desktop.

Select an option

Save glarizza/1036702 to your computer and use it in GitHub Desktop.
passenger vhost config
# 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