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

186
Vistas
Changing web app's base url into host's subdomain

I want to deploy some web applications on different ports on the same host, with nginx reverse proxy.

So my configuration file is like this;

server_name         foo.bar.com

location /app1/ {
    proxy_pass      http://127.0.0.1:5000/;
}

location /app2/ {
    proxy_pass      http://127.0.0.1:6000/;
}

...

They work mostly fine, but there's a problem with one app.

It's a nodejs application and it has some functions like location.href = "/baz" that change current session's url from http://foo.bar.com/app into http://foo.bar.com/baz and cause Not Found errors.

That application is quite complicated and not written by me, so modifying it is quite hard.

Is there any way to change the application's base url into http://foo.bar.com/ so that make it work as http://foo.bar.com/app/baz, not http://foo.bar.com/baz?

over 4 years ago · Santiago Trujillo
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