Dockerized apache2 reverse proxy service.
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 .
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
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: