You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Christopher K. St. John" <ck...@distributopia.com> on 2002/06/20 06:32:42 UTC
Apache 1.3/jk2, redirects, status?
jk_service_apache13.c:jk2_init_ws_service:
/* get the real port (otherwise redirect failed) */
/* apr_sockaddr_port_get(&port,r->connection->local_addr); */
/* s->server_port = port; */
It's true, redirects do fail when Apache is running on a
non-default port. It looks like this was commented out on
purpose, maybe because of the APR dependency?
s->server_port = r->server->port;
appears to work without having to depend on APR, but I'm
not enough of an Apache module programmer to know if you
can depend on request_rec->server->port being set correctly.
There are some further problems with redirects, but
before I go into detail I need to test more. I haven't
been following the connector development in detail, what's
the status of the Apache 1.3/jk2 stuff? Is it ready for
testing? (Am I even looking at the right code?)
--
Christopher St. John cks@distributopia.com
DistribuTopia http://www.distributopia.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Apache 1.3/jk2, redirects, status?
Posted by co...@covalent.net.
The Apache1.3 jk2 stuff is actually backported from the Apache2,
with few fancy features removed ( like support for Location mapping ).
It should work - I'm spending most of the time testing with Apache2,
but usually the fixes and bugs happen in the common code, so
it applies to all servers.
If you got some time to work on that - it would be great. I finally
got jasper to work, but I still have a lot of other things to finish.
Costin
On Wed, 19 Jun 2002, Christopher K. St. John wrote:
> jk_service_apache13.c:jk2_init_ws_service:
>
> /* get the real port (otherwise redirect failed) */
> /* apr_sockaddr_port_get(&port,r->connection->local_addr); */
> /* s->server_port = port; */
> It's true, redirects do fail when Apache is running on a
> non-default port. It looks like this was commented out on
> purpose, maybe because of the APR dependency?
>
> s->server_port = r->server->port;
>
> appears to work without having to depend on APR, but I'm
> not enough of an Apache module programmer to know if you
> can depend on request_rec->server->port being set correctly.
>
> There are some further problems with redirects, but
> before I go into detail I need to test more. I haven't
> been following the connector development in detail, what's
> the status of the Apache 1.3/jk2 stuff? Is it ready for
> testing? (Am I even looking at the right code?)
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>