0

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

1 Answer 1

0

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"

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.