Skip to content

Instantly share code, notes, and snippets.

@kkabetani
Last active March 30, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkabetani/d837b229872cd680e10634dbd9006c59 to your computer and use it in GitHub Desktop.
Save kkabetani/d837b229872cd680e10634dbd9006c59 to your computer and use it in GitHub Desktop.
SSL/TLS を使用してapacheにアクセスする
FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/
COPY ./server.crt /usr/local/apache2/conf/
COPY ./server.key /usr/local/apache2/conf/
RUN sed -i \
-e 's/^#\(Include .*httpd-ssl.conf\)/\1/' \
-e 's/^#\(LoadModule .*mod_ssl.so\)/\1/' \
-e 's/^#\(LoadModule .*mod_socache_shmcb.so\)/\1/' \
conf/httpd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment