Return-Path: Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 33523 invoked by uid 500); 13 Dec 2001 17:22:44 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 33511 invoked from network); 13 Dec 2001 17:22:43 -0000 X-Authentication-Warning: mako.covalent.net: dougm owned process doing -bs Date: Thu, 13 Dec 2001 09:27:47 -0800 (PST) From: Doug MacEachern X-Sender: dougm@localhost To: test-dev@httpd.apache.org Subject: Re: [perl-framework] SSL certs/keys for non-mod_ssl In-Reply-To: <3C18D0CE.34143600@Golux.Com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 13 Dec 2001, Rodent of Unusual Size wrote: > You know what's popping my corn right now? Trying to > find out where the flippin' .conf files get a lot of their > contents. For instance, t/conf/extra.conf contains: it is generated from this config in extra.conf.in: ProtocolEcho On ProtocolEcho On SSLEngine On whenever there is a and mod_foo is available, it is expanded into: Listen $port_counter ServerName $servername:$port_counter where $port_counter starts at the default 8529 and is incremented for each VirtualHost. is expanded the same way, but only if $ssl_module (normally mod_ssl.c) is also available. the port number can then be looked up on the client side using the module name. t/protocol/echo.t for example: my @modules = qw(mod_echo); if (Apache::Test::have_ssl()) { $tests *= 2; unshift @modules, 'mod_echo_ssl'; } for my $module (@modules) { my $sock = Apache::TestRequest::vhost_socket($module); first time through, $sock is a socket connected to the port mod_echo is listening on, second time is mod_echo with SSL enabled. the routine that does the parsing/expansion for vhosts is Apache::TestConfig::parse_vhost.