My production/live site is using NGIX, not Apache. So I dont have .htaccess. My site engineer told me the app httaccess code needs to be converted to NGIX.
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1
Need help to do this.
My Kinsta hosting engineer asked me to ask you this question:
Since we use Nginx on Kinsta, .htaccess rules do not work here and can also not be implemented to work here at this point. We understand that the rule
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
is trying to pass a header for HTTP Authorization. We would translate it to this Nginx header after having seen a similar case on the web:
Can you verify this is what is needed?
Please inform and I will forward your answer to my hosting engineer. Thank you.
Well I also do not have much knowledge about this .
the issue is that we are passing an authorization token into headers which is sent as " Authorizartion " is being stripped and never reaches the php code .
where we are parsing it using $_SERVER php global variable .
by adding that rule in .htaccess file server does not strips this header