
This commit adds the subclass which manages the ability for the puppet-dashboard to use Passenger. It requires the apache::vhost defined type and a VirtualHost template.
35 lines
840 B
Plaintext
35 lines
840 B
Plaintext
Listen <%= 8080 %>
|
|
|
|
<VirtualHost *:<%= dashboard_port %>>
|
|
ServerName <%= name %>
|
|
DocumentRoot <%= docroot %>
|
|
RailsBaseURI <%= rails_base_uri %>
|
|
<Directory <%= docroot %>>
|
|
Options None
|
|
AllowOverride AuthConfig
|
|
Order allow,deny
|
|
allow from all
|
|
</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>
|
|
<% case operatingsystem
|
|
when 'Debian', 'Ubuntu'
|
|
apachename = 'apache2'
|
|
else
|
|
apachename = 'httpd'
|
|
end -%>
|
|
ErrorLog /var/log/<%= apachename %>/<%= name %>_error.log
|
|
LogLevel warn
|
|
CustomLog /var/log/<%= apachename %>/<%= name %>_access.log combined
|
|
ServerSignature On
|
|
</VirtualHost>
|
|
|