Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_ssl.c>
- <VirtualHost _default_:443>
- SSLEngine On
- # Do not rely on these certificates, generate your own.
- ServerName lab-control.domain.com
- SSLCertificateFile /etc/letsencrypt/live/lab-control.domain.com/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/lab-control.domain.com/privkey.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 "wss://localhost:5240/MAAS/ws"
- ProxyPass /MAAS/static/ !
- ProxyPass /MAAS/ https://localhost:5240/MAAS/
- ProxyPass /MAAS https://localhost:5240/MAAS/
- </IfModule>
- <IfModule rewrite_module>
- RewriteEngine On
- # Redirect (permanently) requests for /MAAS to /MAAS/.
- RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L]
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement