tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Gomez <hgo...@apache.org>
Subject Re: mod_jk patch to honor Apache UseCanonicalName
Date Mon, 04 Nov 2002 12:34:56 GMT
Thomas Morin wrote:
> Hi,
> 
> Here is a short patch to mod_jk giving people the opportunity to make mod_jk
> honor Apache "UseCanonicalName" option. 
> 
> Eg.:
> 
>   ServerName www.foo.org
>   UseCanonicalName on
>   JkOption HonorUseCanonicalName

It's allready included in latest mod_jk (1.2.1-dev) in CVS ;)

...

     /* get server name */
     /* s->server_name  = (char *)(r->hostname ? r->hostname : 
r->server->server_hostname); */
     /* XXX : à la jk2 */
	s->server_name  = ap_get_server_name(r);

     /* get the real port (otherwise redirect failed) */
     /* s->server_port     = htons( r->connection->local_addr.sin_port ); */
     /* XXX : à la jk2 */
	s->server_port  = ap_get_server_port(r);


...

Thanks...





--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message