Hi to all,

Costin proposed sometimes ago to have an uniq 
workers.properties file which will handle all
the configuration directive and settings.

What about the case of virtual hosting ?

For example, in Apache 1.3/2.0, it's nice 
to be able to use a JkMount directive only
in a virtual server.

I use it extensivelly on my production servers
where site A, B and C are hosted on the same
Apache 1.3 boxes (using std and ssl).

Site A std - only static/php pages
Site B std - only static/php pages
Site C std - only static/php pages

Site A ssl - use contextA (ie /contextA/servlet/hello)
Site B ssl - use contextB (ie /contextB/servlet/hello)
Site C ssl - use contextC (ie /contextC/servlet/hello)

We've got an easy to set configuration

<Virtual mysiteA>
JkMount /contextA/servlet/* workerA
JkMount /contextA/*.jsp workerA
...
</Virtual>

<Virtual mysiteB>
JkMount /contextB/servlet/* workerB
JkMount /contextB/*.jsp workerB
...
</Virtual>

<Virtual mysiteC>
JkMount /contextC/servlet/* workerC
JkMount /contextC/*.jsp workerC
...
</Virtual>

How could we set it in an uniq workers.properties files ?


Case 1 (workerA only for mysiteA, workerB for mysiteB)

worker.workerA.port=8009
worker.workerA.host=remoteA
worker.workerA.type=ajp13
worker.workerA.lbfactor=1
worker.workerA.cachesize=8
worker.workerA.virtual=mysiteA

worker.workerB.port=8009
worker.workerB.host=remoteB
worker.workerB.type=ajp13
worker.workerB.lbfactor=1
worker.workerB.cachesize=8
worker.workerB.virtual=mysiteB

Case 2 (workerA & B goes to the same remote)

worker.workerA.port=8009
worker.workerA.host=commonremote
worker.workerA.type=ajp13
worker.workerA.lbfactor=1
worker.workerA.cachesize=8
worker.workerA.virtual=mysiteA

worker.workerB.port=8009
worker.workerB.host=commonremote
worker.workerB.type=ajp13
worker.workerB.lbfactor=1
worker.workerB.cachesize=8
worker.workerB.virtual=mysiteB

In that case how could we avoid that site A get access to
context B and vice-versa ?

Should it be restricted in server.xml ?

Thanks for your lights here ....


-
Henri Gomez                 ___[_]____
EMAIL : [EMAIL PROTECTED]        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 

Reply via email to