On Wed, 2014-01-22 at 15:43 +0000, David Woodhouse wrote: > On Wed, 2014-01-22 at 16:14 +0100, Thomas Glanzmann wrote: > > Hello everyone, > > I would like to extend nginx with a CONNECT statement which connects to > > a TCP socket. Could someone walk me through which source files I need to > > modify and which fucntions I should have a look at? > > > > Or if there is anything else that can give me a quickstart? > > > > My use case is that I would like to share one tcp port between a > > webserver that I already have and a SSL VPN. The SSL VPN does the > > following: > > > > CONNECT /CSCOSSLC/tunnel HTTP/1.1 > > Johannes, you had patches for lighttpd for this once, didn't you? I > can't find them now... http://johannes.sipsolutions.net/patches/ seems > to have disappeared. I tried once, yes, to make it possible to hand it off to some openconnect server implementation (which didn't exist at the time). And I only deleted all my ancient patches last week, heh. No matter, backups FTW, I've restored that patch. However, I believe that it probably wasn't passing enough information through (certificate, etc.) and I don't really even remember how it worked. johannes