blob: 261720b91b44ef180210051bbfc8c0040e90dd84 [file] [log] [blame]
<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLEngine On
# Do not rely on these certificates, generate your own.
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
</VirtualHost>
</IfModule>
<IfModule mod_expires.c>
<Location /MAAS/>
ExpiresActive On
ExpiresByType text/javascript "access plus 1 hours"
ExpiresByType application/javascript "access plus 1 hours"
ExpiresByType application/x-javascript "access plus 1 hours"
ExpiresByType text/css "access plus 1 hours"
ExpiresByType image/gif "access plus 1 hours"
ExpiresByType image/jpeg "access plus 1 hours"
ExpiresByType image/png "access plus 1 hours"
</Location>
</IfModule>
<IfModule alias_module>
Alias /MAAS/static/ /usr/share/maas/web/static/
</IfModule>
<IfModule proxy_module>
ProxyPreserveHost on
ProxyPass /MAAS/ws "ws://localhost:5240/MAAS/ws"
ProxyPass /MAAS/static/ !
ProxyPass /MAAS/ http://localhost:5240/MAAS/
ProxyPass /MAAS http://localhost:5240/MAAS/
</IfModule>
<IfModule rewrite_module>
RewriteEngine On
# Redirect (permanently) requests for /MAAS to /MAAS/.
RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L]
</IfModule>
Header set Access-Control-Allow-Origin "*"
Header set X-Frame-Options "ALLOWALL"