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: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready