users@glassfish.java.net

Two apps, one server, same port, mod_jk, IIS, possible?

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Nov 2008 13:28:51 PST

I have two different applications. I am using IIS as my web server and mod_jk as a plugin to SJAS 9.1. In IIS these applications have different host names, but they both listen to port 80. Everything is on only one server here.

I have worker.propeties set up like this:

# Set properties for server1 (ajp13)
worker.server1.type=ajp13
worker.server1.host=xxx.xxx.xxx
worker.server1.port=8009
worker.server1.lbfactor=50
worker.server1.cachesize=10
worker.server1.cache_timeout=600
worker.server1.socket_keepalive=1
worker.server1.socket_timeout=300

# Set properties for server2 (ajp13)
worker.server2.type=ajp13
worker.server2.host=yyy.yyy.yyy
worker.server2.port=8010
worker.server2.lbfactor=50
worker.server2.cachesize=10
worker.server2.cache_timeout=600
worker.server2.socket_keepalive=1
worker.server2.socket_timeout=300

In SJAS 9.1, I have this JVM option:

-Dcom.sun.enterprise.web.connector.enableJK=8009

Now to my question: How do I map port 8010, for the other application? Is this even possible? I can't use two server instances with different JVM:s since both can't listen to port 80 ...

Or should I go at this some other way?
[Message sent by forum member 'kristoffer' (kristoffer)]

http://forums.java.net/jive/thread.jspa?messageID=318897