Opened 8 years ago

#1162 new enhancement

Adding HTTP Forward Proxy support in core like apache

Reported by: Mathieu CARBONNEAUX Owned by:
Priority: major Milestone:
Component: nginx-core Version: 1.11.x
Keywords: Cc:
uname -a:
nginx -V: 1.11

Description

To replace completely apache on there major feature, while be importante to implement forward proxy feature (not has proxypass hack but also supporting connect method, and proxy authentication in nginx core .

Ok you can use nginx as forward proxy in using proxypass with variable...
https://ef.gy/using-nginx-as-a-proxy-server

But they not support CONNECT Method natively...

And you cannot use with proxy authentification (407 vs 401 HTTP code) natively...

like :

And

To do that i think adding CONNECT method like https://github.com/chobits/ngx_http_proxy_connect_module in core...

And some modification in http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html module to use 407 in place of 401 in response plus reading authentication in Proxy-Authorization header in place of Authorization header ...

Plus a options like proxyrequests to activate interpretation of request like:

GET http://www.baidu.com/ HTTP/1.1
Host: www.baidu.com
Proxy-Connection: keep-alive

Like proxy_pass http://$http_host$uri$is_args$args;

And interprete correctly the Proxy-Connection: keep-alive header...

Change History (0)

Note: See TracTickets for help on using tickets.