Welcome! Log In Create A New Profile

Advanced

Re: Proxy before apache, always MISS

June 15, 2013 07:25AM
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;

}
Subject Author Posted

Proxy before apache, always MISS

huglester June 14, 2013 08:20PM

Re: Proxy before apache, always MISS

huglester June 15, 2013 07:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready