Nginx 역방향 에이전트 해결 시 headers 가 잘못 되 었 습 니 다.
headers
fields
이 퍼 가기 되 는 것 이 아니 라 fields
에 밑줄 (_)
이 있 는 것 이 고 Nginx 는 불법 으로 간주 되 며
보 내지 않 기 때문이다.예 를 들 어 다음 과 같다. access_token: this is your token
Syntax: underscores_in_headers on | off; Default: underscores_in_headers off; Context: http, server Enables or disables the use of underscores in client request header fields. When the use of underscores is disabled, request header fields whose names contain underscores are marked as invalid and become subject to the ignore_invalid_headers directive.
문서 에서 설명: 밑줄 친
_
headers fields
을 지원 하려 면 underscores_in_headers
을 on
로 설정 해 야 합 니 다.그것 만 설정 하면 소 용이 없습니다. proxy_pass_request_headers on;
server {
...
underscores_in_headers on;
location / {
proxy_pass_request_headres on;
proxy_pass http://server;
}
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
용감한 바로 가기 및 우분투 응용 프로그램안녕하세요 여러분, 이 기사에서는 모든 사이트에서 pwa를 생성하고 실행기 응용 프로그램으로 추가하는 방법을 설명하고 싶습니다. 일부 웹사이트는 PWA로 설치를 허용하지 않지만 유사한 애플리케이션을 원합니다. 1. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.