Using error_page to a named location - possible?

Edho Arief edho at myconan.net
Wed Mar 7 11:39:01 UTC 2012


2012/3/7 Maxim Dounin <mdounin at mdounin.ru>:
>> >
>> >     location @502 {
>> >         internal;
>> >         root /var/www;
>> >         rewrite ^ /502.html break;
>> >     }

This seems to be working, too:

location @502 {
  root /var/www;
  try_files /502.html =404;
}



More information about the nginx mailing list