Created
May 16, 2018 19:13
-
-
Save aimeemikaelac/cebee1994c6ba79e8e3e42b4d96f2c6f to your computer and use it in GitHub Desktop.
config for maas for nsr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
SSLEngine On | |
# Do not rely on these certificates, generate your own. | |
SSLCertificateFile /etc/ssl/certs/172.20.76.36.cert.pem | |
SSLCertificateKeyFile /etc/ssl/private/172.20.76.36.key.pem | |
</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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment