Welcome! Log In Create A New Profile

Advanced

Re: Using error_page to a named location - possible?

Edho Arief
March 07, 2012 06:40AM
2012/3/7 Maxim Dounin <mdounin@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;
}

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using error_page to a named location - possible?

Ed W March 06, 2012 11:38AM

Re: Using error_page to a named location - possible?

Edho Arief March 06, 2012 11:42AM

Re: Using error_page to a named location - possible?

Maxim Dounin March 06, 2012 12:48PM

Re[2]: Using error_page to a named location - possible?

Max March 06, 2012 01:06PM

Re: Using error_page to a named location - possible?

Maxim Dounin March 06, 2012 01:26PM

Re[2]: Using error_page to a named location - possible?

Max March 06, 2012 01:40PM

Re: Using error_page to a named location - possible?

Ed W March 06, 2012 05:34PM

Re: Using error_page to a named location - possible?

Maxim Dounin March 06, 2012 06:30PM

Re: Using error_page to a named location - possible?

Ed W March 07, 2012 04:56AM

Re: Using error_page to a named location - possible?

Edho Arief March 07, 2012 06:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready