Change in error_page behavior

brianmercer nginx-forum at
Mon Nov 1 21:20:56 MSK 2010

I used to use this:

  error_page 497$request_uri;

to redirect requests from the non-ssl address to
the ssl version on the same port.  see

This stopped working recently, probably with the latest change to
error_page in 0.8.53.

After some trial and error, it seems to be working fine with this:

  error_page 497 =301$request_uri;

Is that going to give me the same effect as before?

Posted at Nginx Forum:,146624,146624#msg-146624

More information about the nginx mailing list