Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference between proxy_pass and proxy_connect_address? #84

Closed
apengn opened this issue Mar 5, 2019 · 3 comments
Closed
Labels

Comments

@apengn
Copy link

apengn commented Mar 5, 2019

No description provided.

@chobits
Copy link
Owner

chobits commented Mar 6, 2019

This module makes nginx work as forward proxy server for HTTPS.
It implements this function via supporting HTTP CONNECT method, which is not supported by original nginx.

For details of CONNECT tunnel, see https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling.


  • proxy_connect_address controls upstream peer address of proxy_connect module, with this directive it won't resolve address of proxied upstream peer from DNS server ( configuired by resolver directive).
  • proxy_pass only works for proxy module, it has nothing to do with proxy_connect module.

BTW, nginx proxy module (e.g. directive proxy_pass) can do reverse proxy and forward proxy for HTTP. It cannot support HTTPS forward proxy, that it cannot support CONNECT request.

@chobits
Copy link
Owner

chobits commented Mar 6, 2019

a talk for this module: #78

@chobits
Copy link
Owner

chobits commented Mar 7, 2019

thinks it resolved, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants