ProxyPreserveHost On for apache-proxy demo, refs #1522

This commit is contained in:
Simon Willison 2021-11-19 17:11:13 -08:00
commit 24b5006ad7

View file

@ -21,6 +21,7 @@ RUN echo -e 'ServerName localhost\n\
Allow from all\n\
</Proxy>\n\
\n\
ProxyPreserveHost On\n\
ProxyPass /prefix/ http://localhost:8001/\n\
Header add X-Proxied-By "Apache2"' >> /etc/apache2/httpd.conf