Yes! That was it. Thank you.
Strange that nginx -t didn't say anything wrong with config :(
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,268258,268261#msg-268261
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/lis
Hello. I'm obviously missing something but I'm not quite sure what.
Here's one of my vhosts.
server {
listen 80;
server_name test.local;
access_log /var/log/nginx/access.log;
root /data/www/htdocs/web;
location / {
index index.php;
}
location /testlocation {
i
It was already set but apparently wasn't being used.
location /static/ {
try_files $uri @apache-cache;
proxy_cache_valid 5m;
}
location @apache-cache {
...
proxy_ignore_headers Set-Cookie Expires Cache-Control;
proxy_hide_header Set-Cookie;
internal;
}
Moved this directi
nginx is not caching anything. Every request that's supposed to be cached
has "http cacheable: 0" in debug log.
Test request is a static page with headers like those
< HTTP/1.1 200 OK
< Date: Tue, 17 May 2016 12:23:36 GMT
< Server: Apache/2.2.15 (CentOS)
< X-Powered-By: PHP/5.5.32
< Content-Lengt