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>
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

Leave a Reply