sks-devel
[Top][All Lists]
Advanced

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

Re: [Sks-devel] sks behind lighttpd reverse proxy


From: Roman Pavlik
Subject: Re: [Sks-devel] sks behind lighttpd reverse proxy
Date: Mon, 02 Dec 2013 10:15:17 +0100

Simon,
I did the same configuration just two day ago and it works like a charm. But the proxy module of lighttd was used. You can do it by this way:

include "conf.d/proxy.conf" # for IPv4
$SERVER["socket"] == "87.106.189.5:11371" {
    proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 11371 )))
    setenv.add-response-header = ( "Via" => "1.1 keys.s-l-c.biz:11371 (lighttpd)" )
    accesslog.filename = "/var/log/lighttpd" # logging disabled; you can specify the log file here if you like
}
Hope, this help.
Regards,
--
Roman Pavlik







Simon Lange píše v Po 02. 12. 2013 v 09:08 +0100:
Hi all,

sks running fine.

but

if u put it behind a lighttpd reverse proxy for ports 11370 and 11371 it
wont work anymore.
11370 (recon) isnt operational anymore. communication is broken.
connection establishes but the communication itself does not work. sks
and company do not understand eachother anymore if a lighttpd reverse
proxy is between them.
11371 almost same. gpg client does not work anymore. a keysearch with
gpg wont find ANYTHING anymore as long the lighttpd reverse proxy is
between. only via browser (firefox, chrome, IE, ...) it works. same for
443 reverseproxy to 11371.
sks without any reverse proxy for ports 11370 and 11371 works perfectly.
gpg finds everything again and recon runs as it always did.

for me it seems just proxying the connection through lighttpd seems not
be enough for gpg or sks(recon). so what is it that gpg/sks got a
problem with?
the lighttpd reverse proxy is correctly configured. every connection to
that ports is proxied to the daemon running on 127.0.0.1

any ideas?

some information:
sks 1.1.4
lighttpd 1.4.30
http://keys.s-l-c.biz:11371/pks/lookup?op=stats
you can see the recon gap on dec 1st 2013. this happened when the recon
port was behind reverse proxy.
11371 is currently behind reverseproxy. its reachable also via :80 and
:443 with hostname keys.s-l-c.biz

configuration snippet (lighttpd):
server.reject-expect-100-with-417 = "disable"
$SERVER["socket"] == "87.106.189.5:11371" {
        server.name             = "keys.s-l-c.biz"
        accesslog.filename      =
"/var/log/lighttpd/keys.s-l-c.biz-access-11371.log"
        proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 11371
) ) )
        setenv.add-response-header = ( "Via" => "1.1
keys.s-l-c.biz:11371 (lighttpd)" )
}

#same configuration i tried for 11370 (ofcourse with changed ports).

any help is welcome

regards

Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]