Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-08 Thread Christian Weiske
Hello Yann, > > $ curl -I example.org/ > > ... > > Link: ; 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

Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-07 Thread Yann Ylavic
On Sun, Jun 7, 2015 at 1:24 PM, Christian Weiske wrote: > > $ curl -I example.org/ > ... > Link: ; 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 pr

Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-07 Thread Christian Weiske
Hello Yann, > > I'm trying to do that with mod_header and the following > > configuration: > >> Header append Link '; > >> 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 va

Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-06 Thread Yann Ylavic
On Sat, Jun 6, 2015 at 1:38 PM, Christian Weiske wrote: > > I'm trying to do that with mod_header and the following configuration: > >> Header append Link '; rel="self"' You could use %{REQUEST_URI}s (a trailing s instead of e) if mod_ssl is loaded (LoadModule).

Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-06 Thread Christian Weiske
Hello all, > > > > Header append Link '; >> >> Not sure if RewriteEngine On would be sufficient; if it isn't >> you could set the header itself in a rewriterule. > But thanks for the hint; I'll try the rewrite rule suggestion. I fail to get a response header se

Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-06 Thread Christian Weiske
Hello Nick, > > To fulfil the requirements of the PubSubHubbub 0.4 spec[1], I have > > to send a rel=self header for each file. > > > Header append Link '; > > > rel="self"' > > Why does it not work with static files? > > What can I do to fix that? > In the mea

Re: [users@httpd] mod_headers: REQUEST_URI for static files

2015-06-06 Thread Nick Kew
On Sat, 2015-06-06 at 13:38 +0200, Christian Weiske wrote: > Hello, > > > To fulfil the requirements of the PubSubHubbub 0.4 spec[1], I have to > send a rel=self header for each file. > > I'm trying to do that with mod_header and the following configuration: > > > Header append Link '

[users@httpd] mod_headers: REQUEST_URI for static files

2015-06-06 Thread Christian Weiske
Hello, To fulfil the requirements of the PubSubHubbub 0.4 spec[1], I have to send a rel=self header for each file. I'm trying to do that with mod_header and the following configuration: > Header append Link '; rel="self"' This works as long the file is proces