Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Proxy before apache, always MISS

$
0
0
Solved it by:

location ^~ /bin/ {
expires 30d;

add_header X-Cache-Status $upstream_cache_status;
proxy_pass http://{DOMAIN};

proxy_ignore_headers X-Accel-Expires Expires Cache-Control;

proxy_cache my-cache;
proxy_cache_key "$host$request_uri";
proxy_cache_valid 200 30d;
proxy_cache_valid 301 302 10m;
proxy_cache_valid 404 1m;

}

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>