Re: mod_headers: REQUEST_URI for static files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 7, 2015 at 1:24 PM, Christian Weiske <cweiske@xxxxxxxxxx> wrote:
>
> $ curl -I example.org/
> ...
> Link: <http://example.org/index.htm>; rel="self"
>
> But I do not get the original request URI ("/" only), which is what I'm
> looking for.

If you want the original URI instead of the DirectoryIndex, you
probably need to save it in an environment variable with a
RewriteRule, and then use that variable in the Header rule.
Something like:

RewriteEngine On
RewriteRule ^ - [E=ORIGINAL_URI:%{REQUEST_URI}]
Header append Link '<http://example.org%{ORIGINAL_URI}e>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux