# ************************************ # Vhost template in module puppetlabs-apache # Managed by Puppet # ************************************ ServerName pmaster.genslerwi.com ## Vhost docroot DocumentRoot /usr/share/foreman/public ## Directories, there should at least be a declaration for /usr/share/foreman/public Options SymLinksIfOwnerMatch AllowOverride None Order allow,deny Allow from all ## Load additional static includes ## Logging ErrorLog /var/log/apache2/GWIS-PUPPET.gensler.ad_error.log ServerSignature Off CustomLog /var/log/apache2/GWIS-PUPPET.gensler.ad_access.log combined ## Server aliases ServerAlias foreman ## Custom fragment PassengerAppRoot /usr/share/foreman AddDefaultCharset UTF-8 # Static public dir serving Allow from all = 2.4> Require all granted # Use standard http expire header for assets instead of ETag Header unset ETag FileETag None ExpiresActive On ExpiresDefault "access plus 1 year" # Return compressed assets if they are precompiled RewriteEngine on # Make sure the browser supports gzip encoding and file with .gz added # does exist on disc before we rewrite with the extension RewriteCond %{HTTP:Accept-Encoding} \b(x-)?gzip\b RewriteCond %{REQUEST_FILENAME}.gz -s RewriteRule ^(.+) $1.gz [L] # Set headers for all possible assets which are compressed ForceType text/css Header set Content-Encoding gzip SetEnv no-gzip ForceType text/javascript Header set Content-Encoding gzip SetEnv no-gzip