go to bug id or search bugs for
Whatever header I added via apache config it is stripped by PHP-FPM.
Example headers why are stripped:
- all of them are stripped from the output.
I didn't find any configuration or something which allows to change this.
I use PHP-FPM with Apache 2.2 and mod_fastcgi.
This make it impossible to use AddDefaultCharset in apache confs for example.
Trasparent passing the headers to the user
Custom headers are stripped
Add a Patch
Add a Pull Request
can you provide some more information about this issue as it's not clear what issue you are seeing. In CGI, after PHP processes the request, the response and the headers are passed to Apache, which then serves them to the user.
If you've configured Apache to add some headers to the response, then it wouldn't be possible for PHP to 'strip' them from the response.
Also please say which version of PHP are you using, and some example config for Apache that shows this issue.
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04)
But as you said, it's not PHP-FPM fault, this issue should be closed and probably a follow-up opened for underlying "libapache2-mod-fastcgi", but IIRIC it's not actively maintained.
After I upgraded from Apache 2.2 to Apache 2.4 and replaced "libapache2-mod-fastcgi" with "mod-proxy", and started adding headers by hand in LUA hooks, it started working.
Closing as "not a bug", by request.