httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject Re: [perl-framework] SSL certs/keys for non-mod_ssl
Date Thu, 13 Dec 2001 19:13:22 GMT
On Thu, 13 Dec 2001, Rodent of Unusual Size wrote:
> Um, how does t/ssl/basicauth.t know to which port the request should
> be directed?  As a f'r instance?

Apache::TestRequest::scheme('https');  sets the default scheme to https
(as does t/TEST -ssl).  which underneath triggers the port lookup to use
in general if you want http requests to hit a different vhost, that should
be done the way modules/vhost_alias does it: 

that is, pass Apache::TestRequest::module the same $name you used in
<VirtualHost $name>

the vhost_socket() function takes care of setting the
Apache::TestRequest::module, but also makes the socket into a Net::SSL
socket if the $name =~ /ssl/

all of the port lookups boil down to Apache::TestConfig::port, the
different ways (https scheme, vhost_socket, etc.) of triggering the lookup
are just killing more birds with one stone.

View raw message