We had to creat a dockerfile that contains an Apache web server which uses ProxyPass Directive and will do the following.
- Create the three domains
site1.internal
,site2.interal
andsite3.internal
. site1.internal
will useProxyPass
andProxyPassReverse
directives to redirect any requests for/
tosite2.internal
.- Use another Proxy directive in
site1.internal1
to redirect requests forsite1.internal/special
tosite3.internal
. - Force HTTPS for site1 meaning entering the URL
http://site1.internal
will be rewitten tohttps://site1.internal
. - Make
images
directory in/home
directory and copy any 3 preferred images to/home/images
directory. - Make
site1.internal
serve images from/home/images
directory meaning if there is a request forhttps://site1.internal/images/my_image1.jpg
, it will be served from/home/images
.