﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1162	Adding HTTP Forward Proxy support in core like apache	Mathieu CARBONNEAUX		"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 :
- https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyrequests
- https://httpd.apache.org/docs/2.4/mod/mod_proxy_connect.html

And 

- http://stackoverflow.com/questions/7577917/how-does-a-http-proxy-utilize-the-http-protocol-a-proxy-rfc


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..."	enhancement	new	major		nginx-core	1.11.x					1.11
