Pre-requestics
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
Create vHosts configuration files for your websites with proxy to other docker containers in your system/server path /sites-enabled
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 ProxyPreserveHost On ProxyRequests Off ProxyPass / http://ip-address:8080/ ProxyPassReverse / http://ip-address:8080/
Content type
Image
Digest
Size
107.5 MB
Last updated
almost 10 years ago
docker pull bsdevgan/apache_proxy