Lighttpd as a proxy to a https host

Posted by Homer J. Simpson on Server Fault See other posts from Server Fault or by Homer J. Simpson
Published on 2010-04-27T12:55:45Z Indexed on 2010/04/27 13:03 UTC
Read the original article Hit count: 430

Filed under:
|
|
|
|

Hi,

I am trying to set up a lighttpd as proxy from one server to another (which is running Apache/SSL), having trouble with the https part.. I want to be able to capture https requests and let the Apache server handle it, trying this:

$SERVER["socket"] == ":443" { 
    $HTTP["host"] == "www.mydomain.com" {
    proxy.server  = ( "" => ( ( "host" => "123.123.123.123",  # the Apache
                                "port" => 443)))
     }
 }

Normal port 80 requests are working fine.. What am I doing wrong ?

Edit: Additionaly, error.log doesnt show anything.. Requests to https://www.mydomain.com are not finishing.

© Server Fault or respective owner

Related posts about lighttpd

Related posts about proxy