You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@community.apache.org by Rajasekhar B <ra...@gmail.com> on 2023/10/05 13:41:38 UTC
Re: apache with backend tomcat on diff host facing 503 error
HI Team,
Please help me ,
Thanks
Raj
On Thu, Oct 5, 2023 at 7:05 PM Rajasekhar B <ra...@gmail.com>
wrote:
> HI Team,
>
> I'm a newbie to apache/tomcat .
>
> I'm working on a setting up apache webserver Infront of the tomcat server,
> I have apache webserver on one host(10.176.165.21), and tomcat on another
> host (10.176.165.22). Both are on OS RHEL 7.9.
>
> On the Web server host, I have installed the httpd and configured it to
> connect with the tomcat host. Sharing the config below.
>
> Apache version: Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
>
> Tomcat Server version: Apache Tomcat/9.0.80
>
> /etc/httpd/conf.d/workers.properties:
> worker.list=worker1
>
> worker.worker1.type=ajp13
> worker.worker1.host=10.176.165.22
> worker.worker1.port=8009
>
> I'm using the modjk connector for establishing the connectivity b/n
> apacehe and tomcat.
>
> modjk config:
> # Load mod_jk module
> LoadModule jk_module modules/mod_jk.so
>
> # Specify the workers for Tomcat instances
> JkWorkersFile /etc/httpd/conf.d/workers.properties
>
> # Configure the mod_jk log file
> JkLogFile /var/log/httpd/mod_jk.log
>
> # Set the log level
> JkLogLevel info
>
> # Mount your web application to Tomcat
> JkMount /* worker1
>
> Tomcat :
>
> On the tomcat host : the server config below AJP connector config has been
> set.
>
> <!-- Define an AJP 1.3 Connector on port 8009 -->
> <Connector protocol="AJP/1.3"
> address="::1"
> port="8009"
> maxParameterCount="1000"
> />
>
>
> 8009 port is listening on tomcat server and enabled in required firewalls.
>
> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
> [26749:140710419421312] [info] jk_open_socket::jk_connect.c (818): connect
> to 10.176.165.22:8009 failed (errno=111)
> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
> [26749:140710419421312] [info] ajp_connect_to_endpoint::jk_ajp_common.c
> (1092): (worker1) Failed opening socket to (10.176.165.22:8009)
> (errno=111)
> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
> [26749:140710419421312] [error] ajp_send_request::jk_ajp_common.c (1768):
> (worker1) connecting to backend failed. Tomcat is probably not started or
> is listening on the wrong port (errno=111)
> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
> [26749:140710419421312] [info] ajp_service::jk_ajp_common.c (2892):
> (worker1) sending request to tomcat failed (recoverable), because of error
> during request sending (attempt=1)
>
> I'm looking for help ,
>
> Thanks,
>
> Raj
>
Re: apache with backend tomcat on diff host facing 503 error
Posted by Claude Edney <cl...@yahoo.com.INVALID>.
Did you specify the mod_jk file name completely? And check the If element that
could possibly resolve the issue
[| [Configure apache to use mod_jk](https://www.ibm.com/docs/en/order-
management-sw/9.2.1?topic=tomcat-configure-apache-use-mod-
jk)[ibm.com](https://www.ibm.com/docs/en/order-management-
sw/9.2.1?topic=tomcat-configure-apache-use-mod-jk)| [](https://www.ibm.com/docs/en/order-
management-sw/9.2.1?topic=tomcat-configure-apache-use-mod-jk)
---|---
](https://www.ibm.com/docs/en/order-management-sw/9.2.1?topic=tomcat-
configure-apache-use-mod-jk)
Sent from my iPhone
> On Oct 5, 2023, at 9:43 AM, Rajasekhar B <ra...@gmail.com> wrote:
>
>
> setting up apache webserver Infront of the tomcat server
Re: apache with backend tomcat on diff host facing 503 error
Posted by Matthew O'Brien <ma...@icloud.com.INVALID>.
Hi Raj
Tell Anton James Pate He has proved to live up to His "Evil Celebrity" moniker and that whilst JK may mean "Just kidding" on the internet, it also happens to be the initials of a Lord named Matthew Luke O’Brien who happened to be born from a "K hole" with a Mother named "JanET Kaye".
Anyway, I expect a phone call lest "King James" have lost His only real friend in this world He hasn't had to buy with either sex, money or drugs.
Peace, love and good happiness stuff
Matthew Luke O’Brien
> On Oct 5, 2023, at 21:43, Rajasekhar B <ra...@gmail.com> wrote:
>
> HI Team,
>
> Please help me ,
>
> Thanks
> Raj
>
>> On Thu, Oct 5, 2023 at 7:05 PM Rajasekhar B <ra...@gmail.com>
>> wrote:
>>
>> HI Team,
>>
>> I'm a newbie to apache/tomcat .
>>
>> I'm working on a setting up apache webserver Infront of the tomcat server,
>> I have apache webserver on one host(10.176.165.21), and tomcat on another
>> host (10.176.165.22). Both are on OS RHEL 7.9.
>>
>> On the Web server host, I have installed the httpd and configured it to
>> connect with the tomcat host. Sharing the config below.
>>
>> Apache version: Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
>>
>> Tomcat Server version: Apache Tomcat/9.0.80
>>
>> /etc/httpd/conf.d/workers.properties:
>> worker.list=worker1
>>
>> worker.worker1.type=ajp13
>> worker.worker1.host=10.176.165.22
>> worker.worker1.port=8009
>>
>> I'm using the modjk connector for establishing the connectivity b/n
>> apacehe and tomcat.
>>
>> modjk config:
>> # Load mod_jk module
>> LoadModule jk_module modules/mod_jk.so
>>
>> # Specify the workers for Tomcat instances
>> JkWorkersFile /etc/httpd/conf.d/workers.properties
>>
>> # Configure the mod_jk log file
>> JkLogFile /var/log/httpd/mod_jk.log
>>
>> # Set the log level
>> JkLogLevel info
>>
>> # Mount your web application to Tomcat
>> JkMount /* worker1
>>
>> Tomcat :
>>
>> On the tomcat host : the server config below AJP connector config has been
>> set.
>>
>> <!-- Define an AJP 1.3 Connector on port 8009 -->
>> <Connector protocol="AJP/1.3"
>> address="::1"
>> port="8009"
>> maxParameterCount="1000"
>> />
>>
>>
>> 8009 port is listening on tomcat server and enabled in required firewalls.
>>
>> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
>> [26749:140710419421312] [info] jk_open_socket::jk_connect.c (818): connect
>> to 10.176.165.22:8009 failed (errno=111)
>> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
>> [26749:140710419421312] [info] ajp_connect_to_endpoint::jk_ajp_common.c
>> (1092): (worker1) Failed opening socket to (10.176.165.22:8009)
>> (errno=111)
>> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
>> [26749:140710419421312] [error] ajp_send_request::jk_ajp_common.c (1768):
>> (worker1) connecting to backend failed. Tomcat is probably not started or
>> is listening on the wrong port (errno=111)
>> [Thu Oct 05 04:37:08.658 2023] [ZR51tP-yAAFF7pqs0XfINAAAAAM]
>> [26749:140710419421312] [info] ajp_service::jk_ajp_common.c (2892):
>> (worker1) sending request to tomcat failed (recoverable), because of error
>> during request sending (attempt=1)
>>
>> I'm looking for help ,
>>
>> Thanks,
>>
>> Raj
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org
Re: apache with backend tomcat on diff host facing 503 error
Posted by Gilles Sadowski <gi...@gmail.com>.
Le jeu. 5 oct. 2023 à 15:43, Rajasekhar B <ra...@gmail.com> a écrit :
>
> HI Team,
>
> Please help me ,
https://tomcat.apache.org/findhelp.html
HTH,
Gilles
> > [...]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org