I'm running into a problem configuring mod_jk2 to work with multiple
IPs and hostnames on the same machine. I've looked through the
archives and haven't found anyone with the same problem so perhaps I'm
misunderstanding something from the docs. I have a setup where a have
a box with 2 IPs and each IP has a different hostname. My setup:
172.16.2.85 - www1.doman.com
172.16.2.86 - www2.domain.com
www1 and www2 will have different webapps on them. I have the
workers2.properties file configured so that /webapp1 responds only to
www1 requests and /webapp2 only responds to www2 requests. However,
for a variety of reasons, the box will need to be accessable via IP,
hostname and hostname + domain. For example in workers2.properties I
have:
[uri:www1.domain.com/webapp1]
info=webapp1
context=/webapp1
debug=0
[uri:www1.domain.com/webapp1/*.jsp]
info=Map JSPs
[uri:www2.domain.com/webapp2]
info=webapp2
context=/webapp2
debug=0
[uri:www2.domain.com/webapp2/*.jsp]
info=Map JSPs
However a compiled JSP will only display if the URL
http://www1.domain.dom/webapp1/index.jsp is called. If I attempt to
call it via http://www1/webapp1/index.jsp or
http://172.16.2.85/webapp1/index.jsp I get back a text representation
of the code of the .jsp file. The same goes for www2. I've tried using
alias commands inside a [uri] to no effect. Can someone shed some
light on this?
Thanks in advance!
--
Jason McCormick
Network & Systems Administrator - Lexi-Comp, Inc.
[EMAIL PROTECTED] - 330.656.0239
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]