Interesting Apache+Tomcat Conundrum

Dan Shoop shoop at iwiring.net
Sun Feb 11 13:34:45 PST 2007


At 12:29 AM -0700 2/11/07, James Bucanek wrote:
>Greetings,
>
>Running OS X Server 10.3 on an Xserve.
>
>I'm trying to set up some discussion forums for an existing web 
>site. The forum software and site use JSP running Tomcat. So far, so 
>good.
>
>I'm trying to get the forum software to run in its own domain as 
>though it was its own web site: i.e. http://forums.domain.net/
>
>My problem is ports. Tomcat is running on port 9006. Virutal hosts 
>in OS X run on port 16080 (why, I don't know).

Performance Cache.

You don't want this for dynamic web sites.

Turn it off.

>  If I try to implement this using just ProxyPass it doesn't work 
>because it simply changes the URL to http://jsp.domain.net:9006/, 
>which is ugly.
>
>I tried to do this by simply mapping all requests to Tomcat via 
>'JKMount /*', but this doesn't help because redirects generated by 
>the webapp go to http://forums.domain.net:16080/ because that's the 
>port the servlet thinks it is running on. The redirected request 
>times out because port 16080 isn't accessible from the outside world.
>
>I tried adding ProxyPassReverse directives, but they apparently 
>don't rewrite redirects.
>
>So either I end up with ugly URLs with port numbers in them, or the 
>client gets back URLs that die trying to send to port 16080.
>
>Does anyone know a way out of this?

Use another IP address that is just for this service so that the 
IP:PORT is unique. Disable other services from listening on this new 
IP.
-- 

-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                      http://www.ustsvs.com/
shoop at iwiring.net                                http://www.iwiring.net/
1-714-363-1174

"The wise man doesn't give the right answers, he poses the right
questions." -- Claude Levi-Strauss

------------------------------------------------------------------------

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.


More information about the MacOSX-admin mailing list