Re: mod_headers: REQUEST_URI for static files

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

 



Hello Yann,


> > I'm trying to do that with mod_header and the following
> > configuration:
> >> Header append Link '<http://example.org%{REQUEST_URI}e>;
> >> rel="self"'
> 
> You could use %{REQUEST_URI}s (a trailing s instead of e) if mod_ssl
> is loaded (LoadModule).
> That will only use the variables interpolation from mod_ssl, not the
> engine itself, so you don't need "SSLEngine on" if it's not the case
> already.

Thanks for the hint - that at least gives me a file name:

$ 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.

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: signature.asc
Description: PGP signature


[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