Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
Creating a node js project with lightsail

I am trying to deploy a react app using aws lightsail. I have read the documentation on https://docs.bitnami.com/general/infrastructure/nodejs/get-started/get-started/ but i stil cant get it to work. The commands that i use are the following:

sudo mkdir /opt/bitnami/projects // making the project directory
sudo chown $USER /opt/bitnami/projects // allowing permsions

git clone https://github.com/username/myapp.git
cd /opt/bitnami/projects/myapp
npm install

After installation of the project i configure the vhost files like so:

/opt/bitnami/apache/conf/vhosts/sample-vhost.conf.disabled
/opt/bitnami/apache/conf/vhosts/sample-https-vhost.conf.disabled
change to
/opt/bitnami/apache/conf/vhosts/myapp-vhost.conf
/opt/bitnami/apache/conf/vhosts/myapp-https-vhost.conf

the context of both files are change to:

<VirtualHost 127.0.0.1:443 _default_:443>
  ServerAlias *
  SSLEngine on
  SSLCertificateFile "/opt/bitnami/apache/conf/bitnami/certs/server.crt"
  SSLCertificateKeyFile "/opt/bitnami/apache/conf/bitnami/certs/server.key"
  DocumentRoot /opt/bitnami/projects/myapp // from sample
  <Directory "/opt/bitnami/projects/myapp"> // from sample
    Options -Indexes +FollowSymLinks -MultiViews
    AllowOverride All
    Require all granted
  </Directory>
  ProxyPass / http://localhost:3000/
  ProxyPassReverse / http://localhost:3000/
</VirtualHost>

same is done with the other file. Then i try to install pm2 and run the project but i cant get it to work. I get a 503 service unavailable error from the server.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda