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
$vars->{ssl_module_name}.
in general if you want http requests to hit a different vhost, that should
be done the way modules/vhost_alias does it:
Apache::TestRequest::module('mod_vhost_alias');
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.