You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/04/16 10:47:59 UTC

DO NOT REPLY [Bug 37355] Allow to specify Proxy-Authorization in ProxyRemote

https://issues.apache.org/bugzilla/show_bug.cgi?id=37355

--- Comment #5 from YosheE <yo...@meta-lan.net> 2012-04-16 08:47:59 UTC ---

Hello François,

I have rebuilt apache 2.2 with your patch, it works well for http request so
useful, thank you. But my remote proxy sends me a 407 error (like if
authentication was not provided) for the https requests. Here is my config for
https vhost :

NameVirtualHost *:443
<VirtualHost *:443>
ServerName my.server.name
SSLEngine on
SSLProxyEngine on
SSLVerifyClient none
SSLCertificateFile "/my/cert/file.crt"
SSLCertificateKeyFile "/my/key/file.key"
ProxyRemote https https://user:pass@proxyhost:80
ProxyPass / https://foreign.https.server/
ProxyPassReverse / https://foreign.https.server/
</VirtualHost>

I can see in apache logs :
[error] send_http_connect: the forward proxy returned code is '407'

and apache sends to the end browser a 503 error code.

Is there something wrong in my config or do you have an idea regarding the
patch ?

Thank you very much,
Julien

(In reply to comment #4)
> Created attachment 27977 [details]
> Patched ported to 2.2.x
> 
> This is the same thing, 5 years later.
> This patch based on apache-httpd version 2.2.21. It adds a new feature for the
> ProxyRemote config item. It is now possible to set an optional 
> <proxy-user:proxy-passwd@> prefix. This works with http and https backends.
>   ProxyRemote <protocol://backend-server[:port]>
> <protocol://[<proxy-user>:<proxy-passwd>@]<proxy-server[:port]>
> Example:
>   ProxyRemote https://foo.org http://user:passwd@bar.com:8080
> 
> I could only test this patch with a Squid Proxy.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org