Skip to content

Instantly share code, notes, and snippets.

@JDHatman
Created May 2, 2014 21:37
Show Gist options
  • Save JDHatman/8e84c00cb53a99cdaf1d to your computer and use it in GitHub Desktop.
Save JDHatman/8e84c00cb53a99cdaf1d to your computer and use it in GitHub Desktop.
dashboard vhost
# UPDATE THESE PATHS TO SUIT YOUR ENVIRONMENT
#LoadModule passenger_module /usr/lib/apache2/modules/mod_passenger.so
#PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.11
#PassengerRoot /usr
#PassengerRuby /usr/bin/ruby
# you may want to tune these settings
PassengerHighPerformance on
PassengerMaxPoolSize 12
PassengerPoolIdleTime 1500
# PassengerMaxRequests 1000
PassengerStatThrottleRate 120
#RailsAutoDetect Off
#RackAutoDetect Off
Listen 3000
<VirtualHost *:3000>
RailsBaseURI /
ServerName pmastertest.orchard.fruit.com
DocumentRoot /usr/share/puppet-dashboard/public/
<Directory /usr/share/puppet-dashboard/public/>
Options None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/pmastertest.orchard.fruit.com_error.log
LogLevel warn
CustomLog /var/log/apache2/pmastertest.orchard.fruit.com_access.log combined
ServerSignature On
# Uncomment this section to enable basic auth. This section can also be copied
# to the HTTPS VirtualHost example below.
# # For report submission from masters.
# <Location /reports/upload>
# <Limit POST>
# # Configuration restricts HTTP actions to POST only
# Order allow,deny
# # Allow from localhost
# # Allow from localhost.localdomain
# # Allow from 127.0.0.1
# # Allow from example.com
# # This can be locked down to just your puppet master if required
# # See examples above, or http://httpd.apache.org/docs/2.2/howto/access.html
# Allow from all
# Satisfy any
# </Limit>
# </Location>
#
# # For node definitions from masters.
# <Location /nodes>
# <Limit GET>
# # Configuration restricts HTTP actions to GET only
# Order allow,deny
# # Allow from localhost.localdomain
# # Allow from localhost
# # Allow from 127.0.0.1
# # Allow from example.com
# # This can be locked down to just your puppet master if required
# # See examples above, or http://httpd.apache.org/docs/2.2/howto/access.html
# Allow from all
# Satisfy any
# </Limit>
# </Location>
#
# For web access by humans.
<Location "/">
Order allow,deny
Allow from 10.2.33.127, 127.0.0.1, localhost, 10.3.32.16
Satisfy any
AuthType basic
AuthName "Puppet Dashboard"
Require valid-user
AuthBasicProvider file
AuthUserFile /etc/apache2/.htpasswd
</Location>
</VirtualHost>
# Uncomment this section to enable HTTPS (SSL)
#Listen 443
#<VirtualHost *:443>
# SSLEngine on
# SSLProtocol -ALL +SSLv3 +TLSv1
# SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
#
# SSLCertificateFile /usr/share/puppet-dashboard/certs/dashboard.cert.pem
# SSLCertificateKeyFile /usr/share/puppet-dashboard/certs/dashboard.private_key.pem
# SSLCACertificateFile /usr/share/puppet-dashboard/certs/dashboard.ca_cert.pem
#
# # If Apache complains about invalid signatures on the CRL, you can try disabling
# # CRL checking by commenting the next line, but this is not recommended.
# SSLCARevocationFile /usr/share/puppet-dashboard/certs/dashboard.ca_crl.pem
#
# SSLVerifyClient optional
# SSLVerifyDepth 1
# SSLOptions +StdEnvVars
#
# ServerName dashboard.example.com # UPDATE THIS TO YOUR FQDN
# DocumentRoot /usr/share/puppet-dashboard/public
# <Directory /usr/share/puppet-dashboard/public>
# Options None
# AllowOverride None
# Order allow,deny
# allow from all
# </Directory>
# <Location / >
# Order deny,allow
# Allow from ALL
# # Enable this to require client-side certificates for Dashboard connections
# #SSLVerifyClient require
# </Location>
#</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment