Welcome! Log In Create A New Profile

Advanced

Re: Change proxy_cache options depending on status code received

Serban Teodorescu
September 08, 2022 11:04AM
I should also add that currently this works really well for every distinct $request_url by:


location / {

error_page 500 502 503 504 /maintenance.html;

proxy_cache_valid 500 502 503 504 3m;
}

location = /maintenance.html {
root /etc/nginx/static;
}

_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Change proxy_cache options depending on status code received

Serban Teodorescu September 08, 2022 11:00AM

Re: Change proxy_cache options depending on status code received

Serban Teodorescu September 08, 2022 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready