httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <bak...@web.turner.com>
Subject ap_get_server_port differences
Date Fri, 11 Nov 2005 20:33:33 GMT
in 2.1.9 ap_get_server_port uses the following:

  port = r->parsed_uri.port_str ? r->parsed_uri.port :
                r->connection->local_addr->port ? 
r->connection->local_addr->port :
                r->server->port ? r->server->port :
                ap_default_port(r);


in 2.0.55 it uses:

  port = r->parsed_uri.port_str ? r->parsed_uri.port :
                r->server->port ? r->server->port :
                ap_default_port(r);


This just bit me bad!  I was used to being able to declare things like:

ServerName www.domain.com:80

and having redirects (mod_dir, etc) to pick up on this via ap_construct_url


What, if any, is the work around for 2.1.9?  I really don't want to use 
"UseCanonicalName On"




-- 
Brian Akins
Lead Systems Engineer
CNN Internet Technologies

Mime
View raw message