3 messages in ru.sysoev.nginxRe: http_referer in a SSI directive
FromSent OnAttachments
Manlio PerilloJun 14, 2007 3:30 am 
Igor SysoevJun 14, 2007 8:37 am 
Manlio PerilloJun 14, 2007 9:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: http_referer in a SSI directiveActions...
From:Manlio Perillo (manl@public.gmane.org)
Date:Jun 14, 2007 9:56:29 am
List:ru.sysoev.nginx

Igor Sysoev ha scritto:

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.

Yes, you are right. Sorry.