Hi,<div><br></div><div>In my nginx config, I have a virtual path (/foo), e.g.</div><div><br></div><div>location = /foo {</div><div>  expires 1h;</div><div>  add_header Cache-Control "public";</div><div>}</div><div>
<p class="p1">This path does not exist, and it goes into the fcgi using</p><p class="p1">







</p><p class="p1">location / {        <br>  try_files $uri $uri/ /index.php?$args;<br>}</p><p class="p1">







</p><p class="p1">location ~* \.php$ {<br>  ..<br>}</p><p></p><p class="p1">The problem is the 1st location block is adding 404 to every response even I can route the request to the backend.</p><p class="p1"><br></p><p class="p1">
E.g.</p><p class="p1"> curl -v  '<a href="http://www.example.com/foo">http://www.example.com/foo</a>'</p><p class="p1"></p><p class="p1">< HTTP/1.1 404 Not Found</p><div>bar <-- actual output from backend, but why 404?</div>
<div><br></div><div>Any idea?</div><div><br></div><div><br></div><p></p><p class="p1"><br></p><p class="p1"><br></p><p></p></div>