Internal marked 503 error page returns default 404

Joó Ádám adam at jooadam.hu
Mon Aug 24 21:33:17 UTC 2015


Hi Francis,

Thank you for your response. After some further reading I think now I
get the processing cycle. I would rather not create a separate root
for one file, so I settled with the following:

    location = /unavailable.html {
        return 503;
    }

    location @unavailable {
        try_files /unavailable.html =500;
    }

    try_files $uri =503;

    error_page 503 @unavailable;


Thanks,
Ádám



More information about the nginx mailing list