Apache Headers could not be set

Bug #1368308 reported by Artiom Neganov
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
libapache-mod-fastcgi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have Apache 2.2 with libapache2-mod-fastcgi 2.4.7 runing PHP-FPM

The problem is that none of Apache headers which I set via "Header set" directive appear in the output.

I think I tried every possible Header directive option but still no custom headers on the output.

Example things that don't work (they are obvious, but I leave it here for search engines):

* AddDefaultCharset apache directive
* X-Frame-Option
* Access-Control-Allow-Origin
* Content-Type charset

To reproduce, just add to .htaccess a line like:

Header set My-Custom-Header "Some content"

and then try to fetch any file which is processed via mod_fastcgi. For example:

$curl -I http://localhost/index.php

and you will NOT get My-Custom-Header in the output. While this:

$curl -I http://localhost/index.html

perfectly outputs My-Custom-Header.

Any ideas?

information type: Private Security → Public
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libapache-mod-fastcgi (Ubuntu):
status: New → Confirmed
Revision history for this message
tinodj (gjorgjioski) wrote :

Same behavior here:

Server version: Apache/2.4.18 (Ubuntu)
libapache2-mod-fastcgi Version: 2.4.7~0910052141-1.2

Also
Header always set My-Custom-Header "Some content"

is not working.

Fastcgi is defined like:

FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi-www -socket /run/php/php7.0-fpm-www.sock -pass-header Authorization

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.