Correct way to setup maintenance page in nginx

Alexandr Gomoliako zzz at
Thu Nov 3 21:54:02 UTC 2011

On 11/3/11, Valentin V. Bartenev <i at> wrote:
> I think the main idea was: when we need to do some maintenance, we just
> create
> a specific file (probably with explaining message for users) and Nginx
> starts
> to return 503 on every request.

If you are willing to create some file for this you can just as well swap
nginx.conf with special maintenance config, where you can specify a single
server { } block with return 503 or anything you like.

More information about the nginx mailing list