On 06.12.2012 14:37, Maxim Dounin wrote:
>> Also, at least from the config, the html should not be cached,
>> right?
>
> I don't see anything in the config you provided which will prevent
> caching.
location ~* \.(jpg|gif|png|css|js)
{
try_files $uri @proxy;
}
location @proxy
{
proxy_pass http://backend-all-apaches;
}
location /
{
proxy_pass http://backend-all-apaches;
}
As far as my understanding goes, this will only cache
jpg|gif|png|css|js files, and send the rest directly to the backend.
Please correct me if I am wrong.
Isaac
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx