I need to set up Apache as the web server and have it proxy http requests to a Docker container with its own web server. I'm starting with the Docker image httpd:2.4. What modules do I need to enable, and what would my proxy.conf file look like?
-
Nevermind I answered my own question. Enable proxy_module and proxy_http_module, then proxy.conf contains: <VirtualHost *:80> #ServerName ubuntu.somesite.com <Proxy *>Allow from all </Proxy> ProxyPass / sitecontainer:5000 ProxyPassReverse / sitecontainer:5000 </VirtualHost>– ryangCommented Feb 1, 2019 at 15:34
-
You should write this as an answer rather than as a comment– smac89Commented Mar 28, 2020 at 19:49
Add a comment
|
1 Answer
Enable proxy_module and proxy_http_module, then proxy.conf contains:
<VirtualHost *:80>
#ServerName ubuntu.somesite.com
<Proxy *>
Allow from all
</Proxy>
ProxyPass / sitecontainer:5000
ProxyPassReverse / sitecontainer:5000
</VirtualHost>