They fixed it in a different way already in release 1.53. Also changes were made to 
jk_uriMap.c
So we just need to try latest version from CVS I guess.

-----Original Message-----
From: Eugene Gluzberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:43 PM
To: Dmitry Letin
Subject: Re: mod_jk2, virtual hosts, JkUriSet

Did you have a chance to submit this patch to tomcat-dev list? Perhaps
they will be able to put it in.

Dmitry Letin wrote:
> This this the patch from revision 1.49 of
> jk/native2/server/apache2/mod_jk2.c
> to my current version.
>
> It works for me so far for proper virtual host mapping with server:port
> syntax.
>
> The latest version in CVS at this moment is 1.52,
> but there are not many changes from 1.49.
>
> Dmitry
>
>> -----Original Message-----
>> From: Eugene Gluzberg [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, September 23, 2002 12:00 PM
>> To: Tomcat Users List
>> Subject: Re: mod_jk2, virtual hosts, JkUriSet
>>
>> Is this something that should be a patch to the CVS version?
>>
>> could you submit a context diff plz...
>>
>> Dmitry Letin wrote:
>>
>>> Hi,
>>>
>>> static int jk2_translate(request_rec *r)
>>> {
>>>   ...
>>>
>>>   char vhost_port_buf[1024];
>>>   char *vhost_port;
>>>             ...
>>>
>>>   if (r->server->is_virtual) {
>>>     snprintf(vhost_port_buf, sizeof(vhost_port_buf), "%s:%u",
>>>              r->server->server_hostname, r->server->port);
>>>     vhost_port = vhost_port_buf;
>>>   }
>>>   else vhost_port = NULL;
>>>
>>>   uriEnv = workerEnv->uriMap->mapUri(env,
>>> workerEnv->uriMap,vhost_port,r->uri );
>>>
>>>   ...
>>>
>>> }
>>>
>>>
>>
>
>
> ------------------------------------------------------------------------
>
> 631a632,633
>
>>    char vhost_port_buf[1024];
>>    char *vhost_port;
>
> 680c682,689
> <     uriEnv = workerEnv->uriMap->mapUri(env, workerEnv->uriMap,NULL,r->uri );
> ---
>
>>    if (r->server->is_virtual) {
>>      snprintf(vhost_port_buf, sizeof(vhost_port_buf), "%s:%u",
>>               r->server->server_hostname, r->server->port);
>>      vhost_port = vhost_port_buf;
>>    }
>>    else vhost_port = NULL;
>>
>>    uriEnv = workerEnv->uriMap->mapUri(env, workerEnv->uriMap,vhost_port,r->uri );
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to