3

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?

2
  • 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>
    – ryang
    Commented Feb 1, 2019 at 15:34
  • You should write this as an answer rather than as a comment
    – smac89
    Commented Mar 28, 2020 at 19:49

1 Answer 1

1

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> 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .