I created a wsgi webapp in my webfaction account. This gave me apache with preconfigured httpd.conf. Now I want to repurpose this apache instance as a reverse proxy temporarily to a webapp running on a separate webfaction host. I can get what I want using the ProxyPass directive from mod_proxy, but that module doesn't seem to be available in this build. Is it available somewhere or do I need to build apache from scratch?
asked Jun 04 '12 at 16:04
I can answer this myself. There are additional precompiled modules in /usr/lib/httpd/modules. These modules might not have been compiled with this httpd binary, but they seem to work. So this does the trick:
then add the following to ~/webapps/APP/apache2/conf/httpd.conf
==== Update ======
This seems like the right approach, but it doesn't work between webfaction servers. It appears that webfaction blocks direct connections to httpd running on high ports except on localhost. :-(
If you need an Apache module that we don't provide, then you'll need to build your own Apache from source (along with whatever modules you need) and run that as a custom application.
Note that even if you find pre-compiled Apache modules laying around on the server somewhere, there's absolutely no guarantee that they'll work with the Apache supplied with your back-end apps.
answered Jun 04 '12 at 16:39