71 lines
2.6 KiB
Plaintext
71 lines
2.6 KiB
Plaintext
<VirtualHost *:80>
|
|
ServerName localhost
|
|
ServerAlias maui.local
|
|
DocumentRoot /var/www/html/
|
|
|
|
RewriteEngine on
|
|
RewriteCond %{HTTPS} off
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [END,NE,R=permanent]
|
|
</VirtualHost>
|
|
|
|
<IfModule mod_ssl.c>
|
|
<VirtualHost *:443>
|
|
ServerName localhost
|
|
ServerAlias maui.local
|
|
DocumentRoot /var/www/html/
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/mushu.nest.lutran.ch/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/mushu.nest.lutran.ch/privkey.pem
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
|
|
DirectoryIndex index.php
|
|
|
|
# Serve https://localhost/livetrail/ from the public web root.
|
|
Alias /livetrail /var/www/html/livetrail/public
|
|
|
|
<Directory /var/www/html/livetrail/public>
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
|
|
AddType application/geo+json .geojson
|
|
|
|
<IfModule mod_headers.c>
|
|
<FilesMatch "\.geojson$">
|
|
Header set Cache-Control "public, max-age=31536000, immutable"
|
|
</FilesMatch>
|
|
</IfModule>
|
|
|
|
<IfModule mod_brotli.c>
|
|
AddOutputFilterByType BROTLI_COMPRESS \
|
|
text/html \
|
|
text/plain \
|
|
text/css \
|
|
text/javascript \
|
|
text/xml \
|
|
application/javascript \
|
|
application/json \
|
|
application/geo+json \
|
|
application/manifest+json \
|
|
application/xml \
|
|
image/svg+xml
|
|
</IfModule>
|
|
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE \
|
|
text/html \
|
|
text/plain \
|
|
text/css \
|
|
text/javascript \
|
|
text/xml \
|
|
application/javascript \
|
|
application/json \
|
|
application/geo+json \
|
|
application/manifest+json \
|
|
application/xml \
|
|
image/svg+xml
|
|
</IfModule>
|
|
</Directory>
|
|
</VirtualHost>
|
|
</IfModule>
|