Apache 2.4 + PHP-FPM and Authorization headers

后端 未结 3 625
半阙折子戏
半阙折子戏 2020-11-28 05:22

Summary: Apache 2.4\'s mod_proxy does not seem to be passing the Authorization headers to PHP-FPM. Is there any way to fix this?

Long vers

3条回答
  •  春和景丽
    2020-11-28 06:04

    This took me a long time to crack, since it's not documented under mod_proxy or mod_proxy_fcgi.

    Add the following directive to your apache conf or .htaccess:

    CGIPassAuth on
    

    See here for details.

提交回复
热议问题