You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hemant Chaudhary <he...@gmail.com> on 2017/10/26 06:24:58 UTC
[users@httpd] Start apache with tomcat
Hi All,
I am using tomcat-7.0.82 and httpd-2.4.25.
Following are my configuration :
in server.xml
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="5644" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" URIEncoding="UTF-8" />
in httpd.conf
Listen 5643
Loaded mod_proxy_ajp and mod_proxy
Include /home/ananya/apache-2.4.25/other/ajp.conf
in ajp.conf
ProxyRequests Off
<Proxy *>
Require all granted
</Proxy>
ProxyPass / ajp://15.213.91.33:5644/
ProxyPassReverse / ajp://15.213.91.33:5644/
I started both tomcat and apache server. Apache is listening on port 5643
and tomcat on 5644.
From browser I am sending request ajp://15.213.91.33:5644, but getting
"this page is not working".
I checked in catalina.log ,
Oct 26, 2017 12:51:24 PM org.apache.coyote.ajp.AjpMessage processHeader
SEVERE: Invalid message received with signature 18245
Where am I going wrong ?
how to send request from browser.
Apache location is = /home/ananya/apache-2.4.25/conf
Tomcat location is = /home/ananya/apache-tomcat-7.0.82/conf
Thanks
Hemant
Re: [users@httpd] Start apache with tomcat
Posted by Hemant Chaudhary <he...@gmail.com>.
Hi
Actually its ajp.conf and httpd.conf.
Then what should i write in ajp.conf to work based on my workarund.
Thanks
hemant
On Oct 30, 2017 6:19 PM, "Eric Covener" <co...@gmail.com> wrote:
> ProxyPass directives in ajp.txt don't make any sense, follow some
> basic examples.
>
> On Mon, Oct 30, 2017 at 2:52 AM, Hemant Chaudhary
> <he...@gmail.com> wrote:
> > Hi All,
> >
> > I am attaching my server.xml, httpd.conf and ajp.conf . Please let me
> know
> > where am I going wrong.
> >
> > location of tomcat - /home/ananya/apache-tomcat
> > location of apache - /home/ananya/apache-2.4.25
> >
> > On browser I am giving "15.213.91.33:5643/manager/index.html" as
> request.
> >
> > On Thu, Oct 26, 2017 at 6:30 PM, Hemant Chaudhary
> > <he...@gmail.com> wrote:
> >>
> >> My apache error log says nothing but timcat error log has this thing
> when
> >> i request to tomcat port.
> >>
> >> Oct 26, 2017 12:51:24 PM org.apache.coyote.ajp.AjpMessage processHeader
> >>
> >> SEVERE: Invalid message received with signature 18245
> >>
> >>
> >> On Oct 26, 2017 6:15 PM, "Eric Covener" <co...@gmail.com> wrote:
> >>>
> >>> On Thu, Oct 26, 2017 at 8:22 AM, Hemant Chaudhary
> >>> <he...@gmail.com> wrote:
> >>> > Hi,
> >>> >
> >>> > If I am using http and apache port then index.html of apache is
> >>> > displayed
> >>> > not of ajp.
> >>> >
> >>> > Do I need to change in ajp.conf and server.xml ?
> >>>
> >>> Hard to guess why your ProxyPass is not used, could be something
> >>> hidden in the full config. Have you looked at the error log?
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Start apache with tomcat
Posted by Eric Covener <co...@gmail.com>.
ProxyPass directives in ajp.txt don't make any sense, follow some
basic examples.
On Mon, Oct 30, 2017 at 2:52 AM, Hemant Chaudhary
<he...@gmail.com> wrote:
> Hi All,
>
> I am attaching my server.xml, httpd.conf and ajp.conf . Please let me know
> where am I going wrong.
>
> location of tomcat - /home/ananya/apache-tomcat
> location of apache - /home/ananya/apache-2.4.25
>
> On browser I am giving "15.213.91.33:5643/manager/index.html" as request.
>
> On Thu, Oct 26, 2017 at 6:30 PM, Hemant Chaudhary
> <he...@gmail.com> wrote:
>>
>> My apache error log says nothing but timcat error log has this thing when
>> i request to tomcat port.
>>
>> Oct 26, 2017 12:51:24 PM org.apache.coyote.ajp.AjpMessage processHeader
>>
>> SEVERE: Invalid message received with signature 18245
>>
>>
>> On Oct 26, 2017 6:15 PM, "Eric Covener" <co...@gmail.com> wrote:
>>>
>>> On Thu, Oct 26, 2017 at 8:22 AM, Hemant Chaudhary
>>> <he...@gmail.com> wrote:
>>> > Hi,
>>> >
>>> > If I am using http and apache port then index.html of apache is
>>> > displayed
>>> > not of ajp.
>>> >
>>> > Do I need to change in ajp.conf and server.xml ?
>>>
>>> Hard to guess why your ProxyPass is not used, could be something
>>> hidden in the full config. Have you looked at the error log?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Start apache with tomcat
Posted by Hemant Chaudhary <he...@gmail.com>.
Hi All,
I am attaching my server.xml, httpd.conf and ajp.conf . Please let me know
where am I going wrong.
location of tomcat - /home/ananya/apache-tomcat
location of apache - /home/ananya/apache-2.4.25
On browser I am giving "15.213.91.33:5643/manager/index.html" as request.
On Thu, Oct 26, 2017 at 6:30 PM, Hemant Chaudhary <
hemantdude.chaudhary@gmail.com> wrote:
> My apache error log says nothing but timcat error log has this thing when
> i request to tomcat port.
>
> Oct 26, 2017 12:51:24 PM org.apache.coyote.ajp.AjpMessage processHeader
>
> SEVERE: Invalid message received with signature 18245
>
> On Oct 26, 2017 6:15 PM, "Eric Covener" <co...@gmail.com> wrote:
>
>> On Thu, Oct 26, 2017 at 8:22 AM, Hemant Chaudhary
>> <he...@gmail.com> wrote:
>> > Hi,
>> >
>> > If I am using http and apache port then index.html of apache is
>> displayed
>> > not of ajp.
>> >
>> > Do I need to change in ajp.conf and server.xml ?
>>
>> Hard to guess why your ProxyPass is not used, could be something
>> hidden in the full config. Have you looked at the error log?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
Re: [users@httpd] Start apache with tomcat
Posted by Hemant Chaudhary <he...@gmail.com>.
My apache error log says nothing but timcat error log has this thing when i
request to tomcat port.
Oct 26, 2017 12:51:24 PM org.apache.coyote.ajp.AjpMessage processHeader
SEVERE: Invalid message received with signature 18245
On Oct 26, 2017 6:15 PM, "Eric Covener" <co...@gmail.com> wrote:
> On Thu, Oct 26, 2017 at 8:22 AM, Hemant Chaudhary
> <he...@gmail.com> wrote:
> > Hi,
> >
> > If I am using http and apache port then index.html of apache is displayed
> > not of ajp.
> >
> > Do I need to change in ajp.conf and server.xml ?
>
> Hard to guess why your ProxyPass is not used, could be something
> hidden in the full config. Have you looked at the error log?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Start apache with tomcat
Posted by Eric Covener <co...@gmail.com>.
On Thu, Oct 26, 2017 at 8:22 AM, Hemant Chaudhary
<he...@gmail.com> wrote:
> Hi,
>
> If I am using http and apache port then index.html of apache is displayed
> not of ajp.
>
> Do I need to change in ajp.conf and server.xml ?
Hard to guess why your ProxyPass is not used, could be something
hidden in the full config. Have you looked at the error log?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Start apache with tomcat
Posted by Hemant Chaudhary <he...@gmail.com>.
Hi,
If I am using http and apache port then index.html of apache is displayed
not of ajp.
Do I need to change in ajp.conf and server.xml ?
On Oct 26, 2017 5:37 PM, "Eric Covener" <co...@gmail.com> wrote:
> > From browser I am sending request ajp://15.213.91.33:5644, but getting
> "this page is not working".
>
> Your browser wouldn't use ajp, it would use http. It would also use
> the HTTP servers port, not tomcats.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Start apache with tomcat
Posted by Eric Covener <co...@gmail.com>.
> From browser I am sending request ajp://15.213.91.33:5644, but getting "this page is not working".
Your browser wouldn't use ajp, it would use http. It would also use
the HTTP servers port, not tomcats.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Start apache with tomcat
Posted by Hemant Chaudhary <he...@gmail.com>.
Hi
Few questions regarding your setup.
What is the Listen or port of your apache server ? Is it 8009 ?
Tomcat and apache should start in same or different port ?
After comment in server.xml, do we need to add anything there ?
What url should I use to access tomcat from browser ?
In my setup, I am starting tomcat at 5644 and apache at 5643 port.
and in ajp.conf using 5644(tomacat) port and using same port (5644) to
access from browser.
Thanks
Hemant
On Thu, Oct 26, 2017 at 1:41 PM, kohmoto <ko...@iris.eonet.ne.jp> wrote:
> Hi,
>
> This is may way with httpd and tomcat.
>
> Step 1.
> The following phrase is comment out from server.xml.
> <!--
> <Connector port="8080" protocol="HTTP/1.1"
> connectionTimeout="20000"
> redirectPort="8443" />
> -->
>
> Step 2
> The followings are activated in httpd.conf
>
> LoadModule proxy_module lib/httpd/modules/mod_proxy.so
> LoadModule proxy_ajp_module lib/httpd/modules/mod_proxy_ajp.so
>
> Step 3
> The following statement is added in httpd.conf
>
> Include /etc/httpd/conf/extra/httpd-proxy.conf
>
> Step 4
> The location of httpd-proxy.conf is httpd/conf/extra/httpd-proxy.conf
>
> The following lines are written in httpd-proxy.conf for test.
>
> <Location /examples/>
> ProxyPass ajp://localhost:8009/examples/
> </Location>
>
> <Location /manager/>
> ProxyPass ajp://localhost:8009/manager/
> </Location>
>
>
> Step 5
> Start httpd and tomcat.
>
> Thank you.
>
> Yours truly,
> Kazuhiko Kohmoto
>
>
>
> On 2017/10/26 15:24, Hemant Chaudhary wrote:
>
> Hi All,
>
> I am using tomcat-7.0.82 and httpd-2.4.25.
>
>
> Thanks
> Hemant
>
>
>
Re: [users@httpd] Start apache with tomcat
Posted by kohmoto <ko...@iris.eonet.ne.jp>.
Hi,
This is may way with httpd and tomcat.
Step 1.
The following phrase is comment out from server.xml.
<!--
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
Step 2
The followings are activated in httpd.conf
LoadModule proxy_module lib/httpd/modules/mod_proxy.so
LoadModule proxy_ajp_module lib/httpd/modules/mod_proxy_ajp.so
Step 3
The following statement is added in httpd.conf
Include /etc/httpd/conf/extra/httpd-proxy.conf
Step 4
The location of httpd-proxy.conf is httpd/conf/extra/httpd-proxy.conf
The following lines are written in httpd-proxy.conf for test.
<Location /examples/>
ProxyPass ajp://localhost:8009/examples/
</Location>
<Location /manager/>
ProxyPass ajp://localhost:8009/manager/
</Location>
Step 5
Start httpd and tomcat.
Thank you.
Yours truly,
Kazuhiko Kohmoto
On 2017/10/26 15:24, Hemant Chaudhary wrote:
> Hi All,
>
> I am using tomcat-7.0.82 and httpd-2.4.25.
>
>
> Thanks
> Hemant