Sign inSign up

daveoxley/apache-proxy-ssl

By daveoxley

•Updated over 10 years ago

A Docker container to run an Apache server as an https proxy.

Image
0

663

daveoxley/apache-proxy-ssl repository overview

⁠Apache https proxy server

A Docker container to run an Apache server as an https proxy.

Create a directory conf to hold SSL key, SSL certificate and any Apache config files. Put ssl key and certificate into conf as server.key and server.crt respectively. Create one or more files ending with .conf to hold proxy and any additional Apache configuration.

ServerAdmin [email protected]

ProxyPass /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar

Additional Apache modules or other startup commands can be run by supplying a startup.sh script in the conf directory.

#!/bin/sh
a2enmod proxy_balancer lbmethod_byrequests

From within the conf directory run docker mounting the current dir as /conf and mapping port 443 to the host:

$ docker run -p 443:443 -v `pwd`:/conf -d daveoxley/apache-proxy-ssl

Tag summary

Content type

Image

Digest

Size

127 MB

Last updated

over 10 years ago

docker pull daveoxley/apache-proxy-ssl