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 firstname.lastname@example.org 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