1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<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>
|