For SEO purposes, we would like to change the HTTP status code returned whenever the backend machine behind nginx goes down for some reason.
We would like to change this to "503 Service Unavailable". As well as provide a Retry-After header to indicated to Google / Bing that the request should be retried in X number of seconds.
Is this possible via nginx?
I am not talking about a custom error page, but rather the status code returned in the header.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…