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

243
Views
Unable to access URL without trailing slash on NGINX

I have deployed my Angular 8 app on NGINX inside a subdirectory named test folder.

The app can be accessed successfully if the URL contains of a trailing slash. E.g. www.example.com/test/ However, if it is accessed through www.example.com/test then it will load until it hits error 504.

Here is the code in my nginx config file.

location /test {
    root   /usr/share/nginx/html;
    index  index.html index.htm;
    try_files $uri $uri/ /test/index.html;
}
over 4 years ago · Santiago Trujillo
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!