nflauria
nflauria

Reputation: 897

AWS Lightsail Node JS Express Server Not Working

I have launched an AWS Lightsail Bitnami Node JS instance. I have taken the following steps:

mkdir /home/bitnami/stack/apps/
cd /home/bitnami/stack/apps/
git clone url

touch /opt/bitnami/apps/appname/conf/httpd-prefix.conf
Add to file:
Include "/opt/bitnami/apps/appname/conf/httpd-app.conf"

touch /opt/bitnami/apps/appname/conf/httpd-app.conf
Add to file:
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/

Add to this file: /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf
this: Include "/opt/bitnami/apps/appname/conf/httpd-prefix.conf"

Restart apache server: sudo /opt/bitnami/ctlscript.sh restart apache

cd into appname
npm install
node server.js

When I navigate to the ip address it is still displaying the default bitnami file:

enter image description here

Upvotes: 0

Views: 900

Answers (1)

nflauria
nflauria

Reputation: 897

I figured out the problem. Instead of:

Adding to this file: /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf
this: Include "/opt/bitnami/apps/appname/conf/httpd-prefix.conf"

Add to this file: /opt/bitnami/apache2/conf/bitnami/bitnami.conf
this: Include "/opt/bitnami/apps/appname/conf/httpd-prefix.conf"

Upvotes: 0

Related Questions