http_referer in a SSI directive

Igor Sysoev is at
Thu Jun 14 19:37:45 MSD 2007

On Thu, Jun 14, 2007 at 12:30:33PM +0200, Manlio Perillo wrote:

> In a static page used by the error_page directive:
> error_page 500 /static/xhtml/500.html;
> I want to add a link "back" using the referer header.
> Using SSI the solution can be something like:
> <a href="<!--#echo var="http_referer" -->">Go Back</a>
> However this does not works on nginx (0.5.18), and I got
> <a href="(none)">Go Back</a>
> This is a strange limitation, is the code correct?

After error_page redirection /static/xhtml/500.html has the original
client headers. The "(none)" means that there is no this header.

What do you want that user will return to failed page ?

Igor Sysoev

More information about the nginx mailing list