How to set Retry-After for 503?
Gena Makhomed
gmm at csdoc.com
Fri Jul 3 20:13:59 MSD 2009
On Friday, July 3, 2009 at 18:00:39, tmiskiew wrote:
t> we're using nginx/0.5.35
t> I want to set the Retry-After header for 503, but it isn't working.
t> This is how I tried:
t> location / {
t> if (-f $document_root/system/maintenance.html) {
t> add_header Retry-After 600;
t> return 503;
t> }
t> I've checked with curl -I -H and it's not showing Retry-After.
t> Any ideas?
add_header works only for 200, 204, 301, 302 or 304 status codes.
documentation: http://sysoev.ru/nginx/docs/http/ngx_http_headers_module.html
--
Best regards,
Gena
More information about the nginx
mailing list