Re: stunnel-ed httpd

[email protected] Tue, 5 Mar 2002 10:03:40 -0600
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
On Mon, Mar 04, 2002 at 05:57:59PM -0500, Paul Jarc wrote:
> [email protected] wrote:
> > but no dice: I get `file does not exist' when I try to access
> > https://www.csi.hu/index.html.
> 
> What filename is it trying to open, according to a system call trace?

OK, my bad: I assumed stunnel's command line is similar to djbware.
So I thought one just has to do

stunnel -f -l /usr/local/publicfile/bin/httpd /publics/file

But no, the argument(s) of the command to be executed by stunnel come
after `-- tcpwrapper_service_name"; so the correct command line is

stunnel -f -l /usr/local/publicfile/bin/httpd  -- httpds /publics/file

A correct run file is

#!/bin/sh
exec 2>&1
exec envuidgid root softlimit -o20 -d50000 tcpserver -vDRHl0 -b50 -c100 0 443 stunnel -f -l /usr/local/publicfile/bin/httpd  -- httpds /publics/file

So I now just wonder in which directory did httpd try to open 

./www.csi.hu/index.html

in case of the incorrect command.  In other words, if httpd does not
know its "/public" argument, what does it do?

Thx for the help,

Mate