[users@httpd] Using Apache as Proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello everyone!
I've an application on my internal network  that needs to access a public server on internet network.
I would like that this client could reach that server using an apache http server configured as proxy.

That apache server is listening on port 443 and on port 80.

I've set in my java client configuration the following directives:

-Dhttps.proxyHost=xxx.xxx.xxx.xxx
-Dhttps.proxyPort=80

This is the configuration from my apache httpd.conf:
ProxyRequests On
 AllowCONNECT 80 443
<Proxy *>
  Order deny,allow
  Allow from xxx.xxx.xxx.165
</Proxy>

Where xxx.xxx.xxx.165 is the address of my client application.

This is the configuration ffrom my apache ssl.conf
ProxyRequests On
AllowCONNECT 80 443
<Proxy *>
  Order deny,allow
  Allow from 192.168.77.165
</Proxy>

But when I try to use my proxy I get the following in my webserver log:
Jul  3 16:05:21 li3watp0 httpd[18504]: [info] [client xxx.xxx.xxx.165] SSL library error 1 in handshake (server atmweb-test.ssb.it:443)
Jul  3 16:05:21 li3watp0 httpd[18504]: [info] SSL Library Error: 336027803 error:1407609B:SSL routines:SSL23_GET_CLIENT_HELLO:https proxy request speaking HTTP to HTTPS port!?
Jul  3 16:05:21 li3watp0 httpd[18504]: [info] [client xxx.xxx.xxx.165] Connection closed to child 3 with abortive shutdown (server atmweb-test.ssb.it:443)

I get the same if I change
-Dhttps.proxyHost=xxx.xxx.xxx.xxx
-Dhttps.proxyPort=443


If I try using
-Dhttp.proxyHost=xxx.xxx.xxx.xxx
-Dhttp.proxyPort=80

from my application everything is OK!


Any ideas?
Can you help me???
Please let me know.

Thanks in advance
manuciao


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux