How to set Retry-After for 503?
tmiskiew
nginx-forum at nginx.us
Fri Jul 3 19:00:39 MSD 2009
Hi everyone,
we're using nginx/0.5.35
I want to set the Retry-After header for 503, but it isn't working.
This is how I tried:
error_page 500 502 504 /500.html;
error_page 503 /system/maintenance.html;
location /system/maintenance.html {
# Allow requests
}
location / {
if (-f $document_root/system/maintenance.html) {
add_header Retry-After 600;
return 503;
}
...
}
I've checked with curl -I -H and it's not showing Retry-After.
Any ideas?
Thanks,
Thomas
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3727,3727#msg-3727
More information about the nginx
mailing list