Some days ago I switched my php application to another hosting.

All seemed to work properly, but one thing no. Just a little thing……

 

The Authorization header was not picked by the apache_request_headers() function.

 

The problem comes from the use of PHP and FastCGI over Apache2.

 

After some hours of work I found the following solution:

 

PHP

In the Apache configuration file I modified the line related to FastCGIExternal server in this way:

<VirtualHost *:80>
# other configuration
FastCgiExternalServer  -pass-header Authorization #...................
# further configuration
</VirtualHost>

Gg1