Home > other >  Will help nginx proxy proxy_set_header http_host 404 error
Will help nginx proxy proxy_set_header http_host 404 error

Time:03-13

Just contact nginx forwarding the past is a tomcat server
I set proxy_set_header http_host forward without shows 404 in the past, but I make http_host into proxy_host ok can access, is excuse me why ah
Attach my Nginx configuration
The location ^ ~/test/{
Proxy_pass_header Server;
Proxy_set_header X - Real - IP $remote_addr;
Proxy_set_header Host $proxy_host;
proxy_redirect off;
Proxy_set_header X-ray Scheme $Scheme;
Proxy_pass http://172.16.110.197;
The index index. HTML index. HTM;
}

CodePudding user response:

Nginx for variable http_host, proxy_host analytical results is not the same, can use the default configuration proxy_host nginx
  • Related