Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0Digg thisPin on Pinterest0Email this to someone

I recently had a problem where I could not get any custom HTTP Headers passed to my PHP Script.

It seems that Apache 2 running PHP 7 with FCGID would not allowing and removing or tripping all custom HTTP Headers.

To fix it we need to use the FcgidPassHeader variable.

In my case I wanted the HTTP_SALESFORCEPROXY_ENDPOINT to be received by my PHP Script.

Here is how that gets added.

<IfModule mod_fcgid.c>
FcgidPassHeader SALESFORCEPROXY_ENDPOINT
</IfModule>

Remember to restart Apache after you added the code above.

If you enjoyed this post, why not leave a comment or consider a Donation as a token of your appreciation. If you need help implementing something you saw on this site or any other project why not Hire Me?
SOLVED: Apache 2 PHP 7 FCGID not allowing / removing / stripping custom HTTP Headers
Tagged on:                                                 

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading Facebook Comments ...