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

116
Vistas
On Reload Angular7 application getting 404 after deployment

Removed # from the URL before using "{provide: LocationStrategy, useClass: HashLocationStrategy}" this in appModule file After Removing this getting 404 and

https://example.com/dashboard//home in logs i saw one extra '/' is getting added from NGINX

After NGINX Changes

 location / {
    alias /usr/share/nginx/html/;
         try_files $uri $uri/ /index.html;
          try_files $uri $uri/ = 404;
            try_files $uri $uri/ /index.html =404;
  }

tried these below 2 solution

Angular 2 Hosted on IIS: HTTP Error 404

Angular deployment - 404 on page Refresh

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

location / {
    include /etc/nginx/mime.types;
    try_files $uri /index.html =404;
}

added this to NGINX and worked for me

Thanks :)

about 4 years ago · Juan Pablo Isaza Denunciar
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