Rainer Jung schrieb:
Hi,

Martin Hochreiter schrieb:
Hi!

I have some problems with Tomcat & JK Connector and Apache Virtual hosts.

Apache should only give requests of one virtual host to the jk
connector, but
it handles all requests over to the jk connector, no matter what host.

I didn't try your config, but it looks like the config is OK. The first
virtual server should not forward any requests, the second one should
forward all requests.

Actually the log files of jkerror.log are very big - and getting bigger.

You've not JkLogLevel statement. The docs say it's default is INFO, but
some versions of mod_jk are broken with respect to the default log level
and take debug or trace instead. Please add an explicit "JkLogLevel
info" to the config.

As jk could not map the uri of other virtual hosts, it gives the request
back to apache (or something) and the right page opens, but I don't
want apache to handle all requests of all virtual hosts to the connector.

Are you sure that mod_jk actually tries to forward the requests for the
first virtual host? Maybe you are only mislead by the debug logging int
the log file. Of course mod_jk will look at the requests (and log some
debug lines) even, if it later decides not to forward a request via a
worker.

Can somebody please give me  hint?

Lower your log level and try to make more explicit, why you think, that
mod_jk forwards all requests for both virtual servers.

Regards,

Rainer
Hello Rainer!

I will lower the log level and monitor the issue -
I think that the connector gets every request because of
these lines in jkerror.log:

[Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/include/top.html' [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/include/bottom.html' [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/contact.html.var' [Wed Nov 15 07:15:09 2006] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match

This are requests to the first virtual host and I don't understand why apache handles
that requests over to the connector.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to