Answer the question
In order to leave comments, you need to log in
How to pass custom header from nginx to apache?
Not an expert. Banned on google. Therefore, I ask
Nginx stands in front of Apache. There, the program made api for the Yandex market. The market sends the Authorization header, you need to spend it in Apache if it came to nginx.
Now so
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
}
Answer the question
In order to leave comments, you need to log in
Have you tried this: nginx.org/en/docs/http/ngx_http_core_module.html#v... ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question