The URLs of the wiki nginx articles described above do not work.
nginx provides request header values ββthrough variables prefixed with $ http_ , so the HTTP_USER_AGENT request header is available through $ http_user_agent .
Similarly, a request header named CHICKEN_SOUP will be available through $ http_chicken_soup .
The following example shows how to pass the HTTP Authorization header of HTTP scripts to PHP scripts running under php-fpm (PHP FastCGI Process Manager).
location ~ \.php$ { fastcgi_pass unix:/path/to/socket; fastcgi_index index.php; fastcgi_param HTTP_AUTHORIZATION $http_authorization; ... other settings }
source share