From 59b57a03ffe01028950ec405d993c508ac51a4dc Mon Sep 17 00:00:00 2001 From: Serg Stetsuk Date: Sun, 15 Jul 2018 14:30:19 +0300 Subject: [PATCH] Add default SSL support with self-signed certificate --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e806f52..171a2d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apk update && apk upgrade && \ # Make info file about this build printf "Build of nimmis/alpine-apache, date: %s\n" `date -u +"%Y-%m-%dT%H:%M:%SZ"` >> /etc/BUILD && \ - apk add apache2 libxml2-dev apache2-utils && \ + apk add apache2 libxml2-dev apache2-utils apache2-ssl && \ mkdir /web/ && chown -R apache.www-data /web && \ sed -i 's#^DocumentRoot ".*#DocumentRoot "/web/html"#g' /etc/apache2/httpd.conf && \ @@ -20,6 +20,8 @@ RUN apk update && apk upgrade && \ sed -i 's#PidFile "/run/.*#Pidfile "/web/run/httpd.pid"#g' /etc/apache2/conf.d/mpm.conf && \ sed -i 's#Directory "/var/www/localhost/htdocs.*#Directory "/web/html" >#g' /etc/apache2/httpd.conf && \ sed -i 's#Directory "/var/www/localhost/cgi-bin.*#Directory "/web/cgi-bin" >#g' /etc/apache2/httpd.conf && \ + sed -i 's#/var/www/localhost/htdocs#/web/html#g' /etc/apache2/conf.d/ssl.conf && \ + sed -i 's#/var/www/localhost/cgi-bin#/web/cgi-bin#g' /etc/apache2/conf.d/ssl.conf && \ sed -i 's#/var/log/apache2/#/web/logs/#g' /etc/logrotate.d/apache2 && \ sed -i 's/Options Indexes/Options /g' /etc/apache2/httpd.conf && \