httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch>
Subject Re: Should ap_get_server_name() behave like get_server_name_for_url() for literal IPv6 addresses?
Date Sat, 09 Jan 2010 21:09:30 GMT
On Fri, 8 Jan 2010, Colm MacCárthaigh wrote:
>> mod_proxy_http:
>> via header (should have brackets)
>> ssl_engine_kernel.c:
>> error message url (should have brackets)
>> mod_rewrite:
>> redirects (should have brackets)
>> logging (doesn't matter)
>> SERVER_NAME variable
> Redirects should have brackets yes ... but I don't think that it's the
> job of the SERVER_NAME variable to anticipate potential use in a url,
> it's just a representation of an IPv6 address. Introducing braces
> would break reverse DNS lookups, for one thing.

DNS lookups are a valid point. Unless somebody disagrees, I will 
leave ap_get_server_name()/SERVER_NAME alone but create a public 
ap_get_server_name_for_url() function and use that where 
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message