http_referer in a SSI directive
manlio_perillo at libero.it
Thu Jun 14 20:56:52 MSD 2007
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.
Thanks Manlio Perillo
More information about the nginx