Re: mod_headers not sending headers when file is parsed with PHP fpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 22, 2016 at 12:14 PM, Oliver Baran <obaran@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux