Sign inSign up

bsdevgan/apache_proxy

By bsdevgan

•Updated almost 10 years ago

Ubuntu apache2 proxy

Image
0

888

bsdevgan/apache_proxy repository overview

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 ProxyPreserveHost On ProxyRequests Off ProxyPass / http://ip-address:8080/⁠ ProxyPassReverse / http://ip-address:8080/⁠

Tag summary

Content type

Image

Digest

Size

107.5 MB

Last updated

almost 10 years ago

docker pull bsdevgan/apache_proxy