HUB
Sign inSign up

jubba/apache2-reverse-proxy

By jubba

•Updated over 9 years ago

Dockerized apache2 reverse proxy service.

Image
0

309

jubba/apache2-reverse-proxy repository overview

⁠docker-apache2-reverse-proxy

Dockerized apache2 reverse proxy service.

⁠Building

Clone the project to your directory

git clone https://github.com/Ismail-AlJubbah/docker-apache2-reverse-proxy

Edit the file config\a.conf to add your localhost url (ex: google.local) and target URL (ex: google.nl)

ServerName google.local
...
ProxyPass / https://www.google.nl/
ProxyPassReverse / https://www.google.nl/

Then build the image

docker build -t jubba/apache2-reverse-proxy:latest .

⁠Running

Run this command to run the container

docker run -d -p 8088:80 -u=root --name apache2-reverse-proxy -v /REPLACE-WITH-FULL-PATH/config:/etc/apache2/sites-enabled -v /REPLACE-WITH-FULL-PATH/log:/var/log/apache2  jubba/apache2-reverse-proxy

⁠Test

Edit your /etc/hosts and add this line.

127.0.0.1  google.local

Then go to google.local:8088⁠ on your browser and you will access https://google.nl⁠

More information can be found on the following links:

  1. Original Repo by jmferrer⁠

Tag summary
Recent tags
Content type
Image
Digest
Size
97.1 MB
Last updated
over 9 years ago
docker pull jubba/apache2-reverse-proxy:latest