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 <kohm...@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
>
>
>

Reply via email to