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

Add HTTPS (client request) to upstream HTTP-ONLY proxy support #188

Open
ohadm2 opened this issue Apr 6, 2021 · 0 comments
Open

Add HTTPS (client request) to upstream HTTP-ONLY proxy support #188

ohadm2 opened this issue Apr 6, 2021 · 0 comments

Comments

@ohadm2
Copy link

ohadm2 commented Apr 6, 2021

Why you need it?

I need to work with a corporate proxy that doesn't support connecting clients via HTTPS directly (the proxy makes the requests for them).

How it could be?

The module will detect that an HTTP-ONLY proxy was setup in the "proxy_connect_address" directive by examining the SCHEMA of the value ("http" or "https" which is currently not supported). If the client will generate an HTTPS request, Nginx will create a new standard http request to its upstream proxy server telling it to make the https request himself (just like a normal http-proxy-aware client).

Other related information

Currently, using a http-only upstream proxy results an "SSL Version Error" error because the upstream proxy gets a direct https request it can't handle. The upstream proxy must be https-aware in order to make a client work with https via this Nginx module and usually that is NOT the case. On top of that, most if not all current web requests are over SSL so this is a real problem....

@ohadm2 ohadm2 changed the title Add HTTPS (client request) to HTTP proxy support Add HTTPS (client request) to upstream HTTP-ONLY proxy support Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant