On Mon, Aug 22, 2016 at 12:14 PM, Oliver Baran <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to