I'm attempting to switch from apache to nginx on my small server. The only issue this is actually the getallheaders() function I made use of during my PHP scripts which doesn't work with Nginx. I've attempted the consumer led notes on php site on getallheaders finction but that doesn't return all request headers.
Please let me know how you can solve this issue. I would love to change to Nginx.
You are able to still utilize it but you'll have to re-define/re-write it like here
A request header of Owner-ID is going to be passed to php as $_SERVER['HTTP_OWNER_ID'] by nginx. All request headers are passed in the same way.