Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!