Vivek Khera wrote:
> mod_ssl alters the Apache API, so if you're doing the same then that's
> why they clash.  Either that or you're patching something near what
> mod_ssl patches.

Good guess.  mod_ssl adds some initialization code add the end of
common_init(), and so does lingerd....  which is why lingerd's patch
wasn't applying cleanly.  

I had to make a different patch, for use with mod_ssl.  The file is
ftp://iagora.com/pub/software/lingerd/tmp/aplinger-ssl.diff 
(I'll put it in a proper lingerd release once I've checked a bit
more closely how it all works)

With this patch, I got Apache to build with lingerd, mod_perl and
mod_ssl, and it seems to work fine.  Netscape can access it, the
ssl_engine_log doesn't show any errors, and keep-alive works.

Btw, SSL really wants keep-alives on (key setup is slow), while
mod_perl kind of wants them off (images should be served separately
anyway, and lingerd is much more effective when keep-alives are
off), so putting mod_ssl and mod_perl in the same Apache is a bit of
a compromise.  I'd still do it for secure dynamic pages, since you
really need both, but I'd never serve non-secure (http) pages from
the Apache that has mod_ssl in and keep-alives on.

Anyway, here's the sequence of commands that I used to get
Apache/mod_perl/mod_ssl/lingerd to build:

get and untar:
  apache_1.3.17.tar.gz
  mod_ssl-2.8.0-1.3.17.tar.gz
  mod_perl-1.25.tar.gz
  lingerd-0.93.tar.gz
  aplinger-ssl.diff

cd mod_ssl-2.8.0-1.3.17 
./configure --with-apache=../apache_1.3.17/

cd ../mod_perl-1.25 
perl Makefile.PL APACHE_SRC=../apache_1.3.17/src DO_HTTPD=1 \
                 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
make 
make install

cd ../lingerd-0.93
vi config.h apache-1.3/ap_lingerd.h
make
make install
mkdir /var/run/lingerd
chown httpd.httpd /var/run/lingerd
chmod 755 /var/run/lingerd

cd ../apache_1.3.17
cp ../lingerd-0.93/apache-1.3/ap_lingerd.* src/main 
patch -p0 -d src/ < ../aplinger-ssl.diff  

SSL_BASE=SYSTEM ./configure --prefix=/usr/local/ssl-apache \
        --enable-module=ssl --activate-module=src/modules/perl/libperl.a \
        --enable-module=perl

make
make certificate
make install


Let me know if something like that works for you...  I want to
officially support mod_ssl in the next release of lingerd, but I
need more test data!


        Roger
-- 
Roger Espel Llima, [EMAIL PROTECTED]
http://www.iagora.com/~espel/index.html

Reply via email to