Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

123
Visualizações
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 Respostas
Responde à pergunta

0

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

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda