DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36155>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36155





------- Additional Comments From [EMAIL PROTECTED]  2006-01-18 17:51 -------
The comment by Dan sounded much like "your config cannot work at all". So i
think i need to explain a little more:

The config does work, if you:
- restart apache, then run only "./test.sh alias1": you will only see host1 on
the console
- restart apache, then run only "./test.sh alias2": you will only see host2 on
the console
- use worker1 for the one virtualhost, and use worker2 for the other, then run
"./test.sh alias1" and "./test.sh alias2" in parallel: both scripts return the
right results.

I hope that you agree with me, that tomcat chooses the hosts like it should.
Note, that the server.xml says useIPVHosts="true" - so tomcat does AFAIK not
look at the host-header, but at some other information that mod_jk sends. Since
i also use "UseCanonicalName On" for apache, mod_jk is supposed to send the
ServerName declared for the virtualhost.

The config does not work, if you use the same worker for both virtualhosts -
which is "the right thing" IMHO since there is also only one tomcat running.
What do i mean, with "it does not work" - well:
Start "./test.sh alias1" and "./test.sh alias2" in parallel. If you're lucky, it
works for 10 requests and you see what you should: "host1" returned by the first
command, and "host2" returned by the second command.

The result changes for me, and the at least one command "goes crazy" and returns
something else: either the command only returns host1 instead of host2 (or vice
versa of course) or sometimes i even get an alternating sequence of host1 and
host2 by one of the commands - or even by both.

Especially the alternating output is a case, that should not occur. The choice
made by tomcat is deterministic AFAIK and tomcat is only considering the data
that it gets by mod_jk, so how can there be an alternating sequence?

My conclusion is, that mod_jk sends the wrong servername, or perhaps sending the
servername is optional and tomcat just "reuses" the information it has been
given by a former AJP-request on the same connection - but i have no clue about
those internal things.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to