Apache 500 error with NodeJS mod_proxy

An Apache reverse proxy setup with working NodeJS server (confirmed by locally cURL’ing, eg ‘curl localhost:8000’) is returning a 500 Internal Server Error, and nothing in any error logs to be found.

Apache’s VHost looks to be working with correct reverse proxy settings:

<virtualhost *:80>
        ServerName   example.com

        ProxyRequests off
        ProxyPass http://localhost:1337/ retry=1
        ProxyPassReverse http://localhost:1337/
</VirtualHost>

Possibly Apache’s mod_proxy has been installed, but not mod_proxy_http

Install mod_proxy_http with:

$ a2enmod proxy_http

Codemonkey of Node.js, Django, PHP and all things HTML5 Solving tech challenges, one bit at a time.

Posted in Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

*