httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Weiske <cwei...@cweiske.de>
Subject Re: [users@httpd] mod_headers: REQUEST_URI for static files
Date Mon, 08 Jun 2015 10:30:07 GMT
Hello Yann,


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

This does also give me "null" for static files, while it does work for
files handled by FastCGI:

> $ curl -I www.bogo/tagebuch/
> HTTP/1.1 200 OK
> Link: <http://example.org(null)>

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

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

Mime
View raw message