Mailing List Archive

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

--- Comment #5 from YosheE <> 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>
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/

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,

(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
> I could only test this patch with a Squid Proxy.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail: