Hi Everyone,
I've been facing a little situation using proxy_pass. As you can see at conf file bellow, there is a docroot filesystem where the static files are located, and a proxy_pass configuration for another path. It works fine, however when i configure the expires directives, i got 404 for the proxy_pass requests.
server
{
server_name foo;
root /nfs/staticfiles/;
#Here is the issue!
location /img/ {
proxy_pass http://foo.bar.com/;
}
# When i configure this directive, i got 404 for /img path
location ~* \.(png|jpg|jpeg|gif|ico)$ {
expires max;
}
location ~ /\.svn {
deny all;
}
}
Thank you!
Biazus