Bug #68006 [Opn->Fbk]: PHP-FPM strips headers
Edit report at https://bugs.php.net/bug.php?id=68006&edit=1
ID: 68006
Updated by: danack@php.net
Reported by: aneganov at gmail dot com
Summary: PHP-FPM strips headers
-Status: Open
+Status: Feedback
Type: Bug
Package: FPM related
Operating System: Ubuntu 12.04
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Hi,
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.
Previous Comments:
------------------------------------------------------------------------
[2014-09-11 12:42:23] aneganov at gmail dot com
Description:
------------
Whatever header I added via apache config it is stripped by PHP-FPM.
Example headers why are stripped:
Content-Type's charset
X-Frame-Option
Access-Control-Allow-Origin
- 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.
Expected result:
----------------
Trasparent passing the headers to the user
Actual result:
--------------
Custom headers are stripped
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68006&edit=1
Thread (4 messages)