NGINX: Set/use requests with fully qualified domain name (= FQDN).

Sportmodus nginx-forum at forum.nginx.org
Wed May 11 11:24:09 UTC 2016


Hi @ all. NGINX proxy_pass works great with our internal servers. Thanks for
the good work.

Now I want to proxy_pass an external server and I have to use our proxy for
this to get an external connection.

I checked with tcpdump and Wireshark. NGINX sends

"GET /uri HTTP/1.1
HOST: external.com"

to my upstream (= coporate proxy).

Can I modify this to

"GET http://external.com:80/uri HTTP/1.1
HOST: external.com"

?

Problem is: Our proxy denies requests (error 400 bad request) without FQDN
(= fully qualified domain name).

Any help or workaround is welcome.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266802,266802#msg-266802



More information about the nginx mailing list