how to proxy from https to http with lighttpd -


i have internal site (192.168.2.1) accessible http

on different server run public web-server using lighttpd. can make internal site accessible outside work follows

$http["host"] == "internal.example.com" {     ...     proxy.server  = ( "" =>         ( "internal" =>             (                 "host" => "192.168.2.1",                 "port" => 8000             )         ) } 

this works, use https outside world. question is, how can proxy going https http ?

i've tried this:

$server["socket"] == ":443" {    $http["host"] == "internal.example.com" {         ...         proxy.server  = ( "" =>             ( "internal" =>                 (                     "host" => "http://192.168.2.1",                     "port" => 8000                 )             )     } } 

but doesn't seem work. appreciated

update: impression https not supported in combination reverse proxies. maybe haproxy solution

lighttpd can listen clients on https , proxy backend via http.

in config example, external client sending requests https://internal.example.com/... ? authority (e.g. hostname) of external url needs go $http["host"] condition enables proxy.

$server["socket"] == ":443" {     $http["host"] == "external.example.com" {         ...         proxy.server  = ( "" =>             ( "internal" =>                 (                     "host" => "192.168.2.1",                     "port" => 8000                 )             )         )     } } 

Comments

Popular posts from this blog

android - Automated my builds -

python - Flask migration error -