Skip to content

JubbaSmail/docker-apache2-reverse-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Links

More information can be found on the following links:

  1. Original Repo by jmferrer

About

Dockerized apache2 reverse proxy service.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%