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

Re: [users@httpd] Apache2.4 forward proxy ssl between client and proxy server

configured HTTPS on 8080 port and here is the request sent to HTTP and HTTPS found two things by running curl with --insecure

1.) for all HTTP requests  i get 400 bad requests as response
2.) for all HTTPS requests i get HTTP/1.1 400 Bad Request

below is the output

curl --insecure -I -x
HTTP/1.1 400 Bad Request
Date: Tue, 10 Apr 2018 11:08:44 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips
Content-Length: 362
Connection: close
Content-Type: text/html; charset=iso-8859-1

 curl --insecure -I -x
curl: (56) Proxy CONNECT aborted

error log for https requests (

[Tue Apr 10 12:12:44.768286 2018] [ssl:info] [pid 13353] [client] AH01964: Connection to child 1 established (server
[Tue Apr 10 12:12:44.769907 2018] [ssl:info] [pid 13353] [client] AH02008: SSL library error 1 in handshake (server
[Tue Apr 10 12:12:44.770033 2018] [ssl:info] [pid 13353] SSL Library Error: error:1407609B:SSL routines:SSL23_GET_CLIENT_HELLO:https proxy request -- speaking HTTP to HTTPS port!?
[Tue Apr 10 12:12:44.770074 2018] [ssl:info] [pid 13353] [client] AH01998: Connection closed to child 1 with abortive shutdown (server


Error Log for HTTP request (
[Tue Apr 10 12:14:41.387149 2018] [ssl:info] [pid 13354] [client] AH01964: Connection to child 2 established (server
[Tue Apr 10 12:14:41.387647 2018] [ssl:info] [pid 13354] [client] AH01996: SSL handshake failed: HTTP spoken on HTTPS port; trying to send HTML error page
[Tue Apr 10 12:14:41.387704 2018] [ssl:info] [pid 13354] SSL Library Error: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request -- speaking HTTP to HTTPS port!?

virtual host configuration




ProxyRequests On
ProxyVia On
SSLProxyEngine On
SSLEngine On
SSLProxyVerify none
SSLCertificateFile 1.cert
SSLCertificateKeyFile 1.key
#AllowConnect 80 443 1080 8082
ProxyPreserveHost On
<Proxy "*">
     Require expr %{HTTP_HOST} =~ /^$/
     Require expr %{HTTP_HOST} =~ /^$/



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-users/msg02440.html on line 69
Call Stack
10.0008368680{main}( ).../msg02440.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-users/msg02440.html on line 69
Call Stack
10.0008368680{main}( ).../msg02440.html:0