Public Repository

Last pushed: 9 months ago
Short Description
Ubuntu apache2 proxy
Full Description

Pre-requestics

  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>
ServerName site1.linuxtweaks.in
<Proxy *>
Allow from localhost
</Proxy>
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://ip-address:8080/
ProxyPassReverse / http://ip-address:8080/
</VirtualHost>

Docker Pull Command
Owner
bsdevgan

Comments (0)