|
<VirtualHost <%= ipaddress %>:80>
|
|
ServerName <%= fqdn %>
|
|
ServerAlias foreman
|
|
DocumentRoot <%= scope.lookupvar 'foreman::params::app_root' %>/public
|
|
PassengerAppRoot <%= scope.lookupvar 'foreman::params::app_root' %>
|
|
|
|
RailsAutoDetect On
|
|
AddDefaultCharset UTF-8
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost <%= ipaddress %>:443>
|
|
ServerName <%= fqdn %>
|
|
ServerAlias foreman
|
|
|
|
RailsAutoDetect On
|
|
DocumentRoot <%= scope.lookupvar 'foreman::params::app_root' %>/public
|
|
PassengerAppRoot <%= scope.lookupvar 'foreman::params::app_root' %>
|
|
|
|
# Use puppet certificates for SSL
|
|
|
|
SSLEngine On
|
|
SSLCertificateFile /var/lib/puppet/ssl/certs/<%= fqdn %>.pem
|
|
SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/<%= fqdn %>.pem
|
|
SSLCertificateChainFile /var/lib/puppet/ssl/certs/ca.pem
|
|
SSLCACertificateFile /var/lib/puppet/ssl/certs/ca.pem
|
|
SSLVerifyClient optional
|
|
SSLOptions +StdEnvVars
|
|
SSLVerifyDepth 3
|
|
|
|
</VirtualHost>
|