Welcome! Log In Create A New Profile

Advanced

How to set Retry-After for 503?

July 03, 2009 11:00AM
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
Subject Author Posted

How to set Retry-After for 503?

tmiskiew July 03, 2009 11:00AM

Re: How to set Retry-After for 503?

Gena Makhomed July 03, 2009 12:13PM

Re: How to set Retry-After for 503?

tmiskiew July 03, 2009 02:01PM

Re: How to set Retry-After for 503?

Gena Makhomed July 03, 2009 03:46PM

Re: How to set Retry-After for 503?

Gena Makhomed July 03, 2009 03:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 97
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