Correct place to include ProxyPass and ProxyPassReverse (Bitnami Node.js server on AWS Lightsail)
I've set up a Bitnami Node.js server on AWS Lightsail. I then ran the Bitnami HTTPS Configuration Tool:
This created several Apache config files, and I'm trying to figure out how and where to set up the proxy to my app running on port 3000. I've identified five different files where I could potentially include the proxies:
/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf /opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf /opt/bitnami/apache2/conf/bitnami/bitnami.conf /opt/bitnami/apps/letsencrypt/conf/httpd-app.conf /opt/bitnami/apps/letsencrypt/conf/httpd-prefix.conf
For the time being, I've included my proxy lines in the
/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf file. The entire contents of the file look like this:
# Bitnami applications installed in a prefix URL Include "/opt/bitnami/apps/letsencrypt/conf/httpd-prefix.conf" ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/
That seems to work, but tbh, I have no idea what I'm doing. Is that configuration correct? Any suggestions / guidance would be much appreciated.