adapt apache config for SSL
Deploy Livetrail / deploy (push) Successful in 26s

This commit is contained in:
2026-08-31 11:30:17 +02:00
parent f4e2781172
commit aa8f80451d
2 changed files with 18 additions and 69646 deletions
+18 -2
View File
@@ -1,11 +1,26 @@
<VirtualHost *:80>
ServerName localhost
ServerAlias maui.local
DocumentRoot /var/www/html/
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 http://localhost/livetrail/ from the public web root.
# Serve https://localhost/livetrail/ from the public web root.
Alias /livetrail /var/www/html/livetrail/public
<Directory /var/www/html/livetrail/public>
@@ -52,3 +67,4 @@
</IfModule>
</Directory>
</VirtualHost>
</IfModule>