Fix PHP-FPM can’t use $_SERVER[‘PHP_AUTH_USER’]

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

This adds a HTTP_AUTHORIZATION key to the $_SERVER global, just as if the Authorization header had been passed through by Apache.

FacebookTwitterGoogle+WeChatWhatsAppShare/Save

Leave a Reply