-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

"Hansen, Jan Espen" wrote:
> Hello !
> 
> I'm trying to set up ApapcheJServ with load-balancing. After reading the
> HowTo and FAQ on this subject, I'm still not able to get it right. What I
> want is to run one Apache with two ApacheJServ on the same machine.
> 
> I'm running:
> Solaris 2.5.1
> Apache 1.3.6
> ApacheJServ 1.0 , JDK 1.1.6
> 
> The jserv.conf:
> <IfModule mod_jserv.c>
> ApJServLogFile /usr/local/apache/logs/espen/mod_jserv.log
> ApJServDefaultProtocol ajpv11
> ApJServDefaultPort 18171
> ApJServProperties /usr/local/apache/conf/espen/jserv.properties
> ApJServManual on
> ApJServSecretKey DISABLED
> 
> ApJServMount /server-java balance://set1/zone1
> 
> ApJServBalance set1 jserv1
> ApJServBalance set1 jserv2
> 
> ApJServHost jserv1 ajpv11://<ip>:62000
> ApJServHost jserv2 ajpv11://<ip>:63000
> 

> 
> and I've set up ApacheJServ to listen on port 18171 in the jserv.properties
> file.
> 
>
Well, your config looks pretty good, but you missed the fact that this
is the Apache side config file, and as you now have to start 2 JServ
manually, maybe on other machines, this Apache file is not read by JServ
!
so you have to understand that you have to create 2 jserv.properties,
one with :
port=62000, and another one with 
port=63000
which are the values that mod_jserv will use for IP port, as described
in your apache config file :
> ApJServHost jserv1 ajpv11://<ip>:62000
> ApJServHost jserv2 ajpv11://<ip>:63000

the defaul port 18171 is here ignored ! JServ does NOT read Apache conf
files !

You'll havee to start 2 JServ instances by hand, don't forget to set the
needed classspath in that script !

hope this helps.

Jean-Luc Rochat


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to