Keywords: MEAN - AWS - Technical issue - Other
bnsupport ID: fdddf117-a4e3-6415-e364-09c5de5da7c0
localhost:3000 starts app1 correctly.
localhost:3005 starts app2 correctly
mydomain.com starts the Bitnami default installation app correctly
mydomain.com/app1 starts node app1, displays first splash page incorrectly
mydomain.com/app2 starts node app2, displays first splash page incorrectly
If I click on the login link within app1 or app2, I get error 404 - requested URL not found on this sever.
The httpd-app.conf file for app1 contains:
ProxyPass /app1 http://127.0.0.1:3000/
ProxyPassReverse /app1 http://127.0.0.1:3000/
The httpd-app.conf file for app2 contains:
ProxyPass /app2 http://127.0.0.1:3005/
ProxyPassReverse /app2 http://127.0.0.1:3005/
The /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf contains:
Bitnami applications installed in a prefix URL
So, apache server looks at the incoming requests and then routes them to the local host with the proper port. When I am testing, I have SSH tunnels to forward port 3000 and 3005. So, entering localhost:3000 or localhost:3005 brings up the node applications correctly. When using mydomain/app1 the first page is displayed, but the CSS is not correct and images are not displaying cause they are not found. All links fail as well. It appears the node app is either not in the right folder location, or the server does not know where to find the app folder correctly.
I hope the problem is clear.