httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] mod_headers not sending headers when file is parsed with PHP fpm
Date Mon, 22 Aug 2016 16:40:11 GMT
On Mon, Aug 22, 2016 at 12:14 PM, Oliver Baran <obaran@gmail.com> 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 directory section of that vhost configuration or in a
> .htaccess file, the custom header is not send to the client if the requested
> file is parsed through PHP. If I request a .txt file the header is send to
> the client. It does not matter if I write `Header always set MyCustomHeader
> "test"` or `Header set MyCustomHeader "test"`

How do you configure Apache to talk to php-fpm? If you use
mod_proxy_fcgi, httpd is generally not aware of any directory used to
satisfy the request -- it's proxying the URL to FPM.

The exception is when you use the SetHandler configuration method of
mod_proxy_fcgi.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message