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.interalandsite3.internal. site1.internalwill useProxyPassandProxyPassReversedirectives to redirect any requests for/tosite2.internal.- Use another Proxy directive in
site1.internal1to redirect requests forsite1.internal/specialtosite3.internal. - Force HTTPS for site1 meaning entering the URL
http://site1.internalwill be rewitten tohttps://site1.internal. - Make
imagesdirectory in/homedirectory and copy any 3 preferred images to/home/imagesdirectory. - Make
site1.internalserve images from/home/imagesdirectory meaning if there is a request forhttps://site1.internal/images/my_image1.jpg, it will be served from/home/images.