Public Repository

Last pushed: 2 years ago
Short Description
Ubuntu apache2 proxy
Full Description


  1. Start this docker image using below command
    docker run -it -d -v /sites-enabled:/etc/apache2/sites-enabled/ -p 80:80 -p 443:443 --name apache_proxy bsdevgan/apache_proxy /bin/bash

  2. Create vHosts configuration files for your websites with proxy to other docker containers in your system/server path /sites-enabled

  3. After that restart apache2 web server
    docker exec -it apache_proxy service apache2 restart

Sample vHosts configuration :-

<VirtualHost *:80>
<Proxy *>
Allow from localhost
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://ip-address:8080/
ProxyPassReverse / http://ip-address:8080/

Docker Pull Command