Automatically redirect on HTTPS

Signed-off-by: Marco Marinello's avatarMarco Marinello <me@marcomarinello.it>
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}
</VirtualHost>
......@@ -16,6 +16,9 @@ COPY logo.png /var/www/images
COPY logo.svg /var/www/images
COPY configure-fuss.sh /
COPY crontab /etc
COPY 000-default.conf /etc/apache2/sites-available
RUN a2enmod rewrite
ENTRYPOINT ["/configure-fuss.sh"]
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