Hi,
In my nginx config, I have a virtual path (/foo), e.g.
location = /foo {
expires 1h;
add_header Cache-Control "public";
}
This path does not exist, and it goes into the fcgi using
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~* \.php$ {
..
}
The problem is the 1st location block is adding 404 to every response even
I can route the request to the backend.
E.g.
curl -v 'http://www.example.com/foo'
< HTTP/1.1 404 Not Found
bar <-- actual output from backend, but why 404?
Any idea?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx