Re: [users@httpd] mod_headers...

2021-10-25 Thread Glenn McCorkle
On Mon, 25 Oct 2021 13:06:41 -0400, Eric Covener wrote: > On Mon, Oct 25, 2021 at 1:04 PM Glenn McCorkle wrote: >> Both of these lines in .htaccess work correctly to add the >> line into the headers in httpd v2.4.48 >> Header set OS "Slackware64 v15.0" >> Header add Custom-Header "OS: Slackware

Re: [users@httpd] mod_headers...

2021-10-25 Thread Eric Covener
On Mon, Oct 25, 2021 at 1:04 PM Glenn McCorkle wrote: > > Both of these lines in .htaccess work correctly to add the > line into the headers in httpd v2.4.48 > > Header set OS "Slackware64 v15.0" > Header add Custom-Header "OS: Slackware64 v15.0" > > However... niether of them is working in httpd

[users@httpd] mod_headers...

2021-10-25 Thread Glenn McCorkle
Both of these lines in .htaccess work correctly to add the line into the headers in httpd v2.4.48 Header set OS "Slackware64 v15.0" Header add Custom-Header "OS: Slackware64 v15.0" However... niether of them is working in httpd v2.4.51 Same problem with httpd installed from the slackware64-curre

Re: [users@httpd] mod_headers not sending headers when file is parsed with PHP fpm

2016-08-22 Thread Eric Covener
On Mon, Aug 22, 2016 at 12:14 PM, Oliver Baran wrote: > Hello, > > I have a problem with Apache mod_headers and PHP fpm (fastcgi). > If I write a custom header directly in the vhost configuration it is send to > the client, even if the request it is a PHP file. But when I write the > header in the

[users@httpd] mod_headers not sending headers when file is parsed with PHP fpm

2016-08-22 Thread Oliver Baran
Hello, I have a problem with Apache mod_headers and PHP fpm (fastcgi). If I write a custom header directly in the vhost configuration it is send to the client, even if the request it is a PHP file. But when I write the header in the directory section of that vhost configuration or in a .htaccess f

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

Re: [users@httpd] mod_headers not echoing environment variables

2011-02-08 Thread Belov, Charles
On Sat, 05 Feb 2011 03:18:00 GMT Eric Covener wrote: > On Fri, Feb 4, 2011 at 10:04 PM, Belov, Charles wrote: >> In response to a request for the file: >> http://www.sfmta.com/cms/cmta_test/documents/3-18-08CurrentFares_test.pd >> f?abc >> with the following directive in .htaccess in the same fol

Re: [users@httpd] mod_headers not echoing environment variables

2011-02-04 Thread Eric Covener
On Fri, Feb 4, 2011 at 10:04 PM, Belov, Charles wrote: > In response to a request for the file: > http://www.sfmta.com/cms/cmta_test/documents/3-18-08CurrentFares_test.pd > f?abc > with the following directive in .htaccess in the same folder > > Header set Location "http://%{SERVER_NAME}e%{REQUEST

[users@httpd] mod_headers not echoing environment variables

2011-02-04 Thread Belov, Charles
In response to a request for the file: http://www.sfmta.com/cms/cmta_test/documents/3-18-08CurrentFares_test.pd f?abc with the following directive in .htaccess in the same folder Header set Location "http://%{SERVER_NAME}e%{REQUEST_URI}e"; httpd 2.2 is serving the following header: Location: htt

[users@httpd] mod_headers with mod_sm20

2005-06-09 Thread Alexander Mueller
Hi, I am having an Apache 2 configuration running with Netegrity's (now Computer Associates) SiteMinder mod_sm20 module and am trying to alter certain outgoing headers with mod_headers. However it doesnt seem to work as expect and I suspect that is because mod_headers is possibly called prior