ZviR
October 31, 2025, 3:44pm
1
Hi All
I’ve run into a problem. How can I use a balancer and multiple versions of Lucy so they can all communicate with her?
Do you have any ideas?
I was copy lucee → lucee2
set lucee port 8010
all run and fine
but problem IIS not see
I have install lucee1 install with windows installer
Also i was try add settings to web.config
<!-- Load balancing settings -->
<add key="BonCodeAJP_EnableLoadBalancing" value="true" />
<add key="BonCodeAJP_LoadBalanceMethod" value="RoundRobin" /> <!-- or "LeastBusy" -->
<!-- Session stickiness (important!) -->
<add key="BonCodeAJP_EnableSessionStickiness" value="false" />
<!-- ModCFML -->
<add key="BonCodeAJP_EnableModCFML" value="true" />
<!-- Health check settings -->
<add key="BonCodeAJP_ConnectionRetries" value="3" />
<add key="BonCodeAJP_ConnectionTimeout" value="5000" />
But they not works
dawesi
December 7, 2025, 2:38am
2
Not sure exactly what you’re doing but try this…
In the BonCodeAJP13.settings file, you can define multiple backends:
<add key="BonCodeAJP13_Instances" value="localhost:8010,localhost:8011" />
Add Sticky Sessions (you can use application request routing module in iis for sticky sessions or using boncode’s)
<add key="BonCodeAJP_EnableSessionStickiness" value="true" />
Configure retries and timeouts so IIS doesn’t send traffic to a dead Lucee instance:
<add key="BonCodeAJP_ConnectionRetries" value="3" />
<add key="BonCodeAJP_ConnectionTimeout" value="5000" />
If you want strict separation
Create multiple sites
Each site has its own BonCode settings file pointing to only one port.
Example:
Site A → BonCodeAJP13.settings → localhost:8010
Site B → BonCodeAJP13.settings → localhost:8011
Approaches:
For load balancing → Use one IIS site with BonCode listing both ports and a balancing method.
For version isolation → Use separate IIS sites, each with its own BonCode config pointing to a single Lucee port.
ZviR
December 9, 2025, 6:51pm
3
I not sure i’m doing correct
This file C:\Windows\BonCodeAJP13.settings
<Settings>
<Server>localhost</Server>
<Port>8009</Port>
<add key="BonCodeAJP13_Instances" value="localhost:8009,localhost:8010" />
<add key="BonCodeAJP_EnableSessionStickiness" value="true" />
<add key="BonCodeAJP_ConnectionRetries" value="3" />
<add key="BonCodeAJP_ConnectionTimeout" value="5000" />
<EnableRemoteAdmin>True</EnableRemoteAdmin>
<EnableHeaderDataSupport>True</EnableHeaderDataSupport>
<ForceSecureSession>False</ForceSecureSession>
<AllowEmptyHeaders>False</AllowEmptyHeaders>
<ModCFMLSecret>***</ModCFMLSecret>
<RequestSecret>***</RequestSecret>
</Settings>
I also try create folder inside project like W:\Project\BIN\BonCodeAJP13.settings
And set for each project each lucee but this file not pick from BIN
I have 2 lucee what is run on 8009 and 8010
When i stop first lucee sites not load and give error about port 8009
can you share the error message, is it coming from tomcat / lucee or IIS?
ZviR
December 10, 2025, 7:08pm
5
Error connecting to Apache Tomcat instance.
Please check that a Tomcat server is running at given location and port.
Details:
No connection could be made because the target machine actively refused it 127.0.0.1:8009
You can change this message by changing TomcatConnectErrorURL setting in setting file.
No connection could be made because the target machine actively refused it 127.0.0.1:8009 at System.Net.Sockets.TcpClient…ctor(String hostname, Int32 port) at BonCodeIIS.BonCodeCallHandler.ProcessRequest(HttpContext context)
My setup
IIS
Lucee1 (server.xml)
<Connector protocol="AJP/1.3"
port="8009"
secret="***"
secretRequired="true"
address="::1"
redirectPort="8443" />
Lucee2 (server.xml)
<Connector protocol="AJP/1.3"
port="8010"
secret="***"
secretRequired="true"
address="::1"
redirectPort="8443" />
C:\WINDOWS\BonCodeAJP13.settings
<Settings>
<Server>localhost</Server>
<Port>8009</Port>
<add key="BonCodeAJP13_Instances" value="localhost:8009,localhost:8010" />
<add key="BonCodeAJP_EnableSessionStickiness" value="true" />
<add key="BonCodeAJP_ConnectionRetries" value="3" />
<add key="BonCodeAJP_ConnectionTimeout" value="5000" />
<EnableRemoteAdmin>True</EnableRemoteAdmin>
<EnableHeaderDataSupport>True</EnableHeaderDataSupport>
<ForceSecureSession>False</ForceSecureSession>
<AllowEmptyHeaders>False</AllowEmptyHeaders>
<ModCFMLSecret>***</ModCFMLSecret>
<RequestSecret>***</RequestSecret>
</Settings>
ok, which version of Lucee?
Are there any errors in the tomcat\logs or tomcat\lucee-server\context\logs
can you access each Lucee instance directly on port 8888 or whatever you configured?
ZviR
December 10, 2025, 7:36pm
7
Both version Lucee 6.2.2.91
First lucee connect to 8888
second runs on 8889 port
not have any erros