I know that I am messing something up with my proxy settings for our web application, but I am not sure what.
We're running Apache and NodeJS on AWS. We have proxy settings set to allow those two to work together ok:
ProxyPreserveHost On ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/
Static pages come through fine.
We have a form that sends records over to a MongoDB cluster on MongoDB Atlas. I have the IPs whitelisted on both sides and the TCP and UDP ports (27015-17) open on the AWS side. We used to run this on a custom MongoDB set up on CentOS which worked for several months, but after switching to Atlas we can't get it to work.
Submitting the form just causes the site to hang then crash with a 502:
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request POST /form.
Reason: Error reading from remote server
I feel like I am missing a simple config setting somewhere in here. Really appreciate any help.