Verified Commit 9cc5eba8 authored by Marco Marinello's avatar Marco Marinello
Browse files

Automatically redirect on HTTPS

Signed-off-by: Marco Marinello's avatarMarco Marinello <>
parent 6334ba96
<VirtualHost *:80>
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/?(.well-known)/
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI}
...@@ -16,6 +16,9 @@ COPY logo.png /var/www/images ...@@ -16,6 +16,9 @@ COPY logo.png /var/www/images
COPY logo.svg /var/www/images COPY logo.svg /var/www/images
COPY crontab /etc COPY crontab /etc
COPY 000-default.conf /etc/apache2/sites-available
RUN a2enmod rewrite
CMD ["apache2-foreground"] CMD ["apache2-foreground"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment