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

122
Views
Nginx 404 issue

I have a location block at / (root) level and a location block at a particular folder level such as /some-folder In the location block for some-folder, i have added a custom header, so that i can determine if nginx is activating that block. When i make a call to a resource such as /some-folder/a.html, i can see custom header coming back, but the try_files $uri $uri/ =404; returning me 404 for a.html

If i comment the location block for /some-folder and just leave the root block and then make a call again to /some-folder/a.html, nginx happily serves the file.

I am confused why root block is able to serve the file, and why /some-folder location block fails, even though it is being activated as i get 404 back with my custom header.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

As mentioned by @RichardSmith, the root was not pointing to correct location. It had a typo.

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