Apacge url is changing to application server url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Team,

I have configured load balancer of 3 instances of tomcat with apache using mod_proxy_ajp and balancer.

Whenever i access apache url, the request is going to tomcat but it is also showing the

application server url.

I am using following version of softwares.

Apache version :- 2.2.14

Tomcat Version :- 6.0.20.

Suppose apache web server url is following :-

http:\\apachewebserver_hostname/eMatrix/servlet/Controller

is changing to

http:\\tomcatserver_hostname:8081/eMatrix/servlet/Controller

http:\\tomcatserver_hostname:8082/eMatrix/servlet/Controller

http:\\tomcatserver_hostname:8083/eMatrix/servlet/Controller


whenver i try to access the application using apache web server url.


I dont want my apache web server url should change to tomcat application server url.

kindly help me to resolve the issues.

Below is the configuration for the mod_proxy_loadbalancer and ajp.

LoadModule ssl_module modules/mod_ssl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

ProxyRequests Off

ProxyPass /eMatrix balancer://cluster

ProxyPassReverse /eMatrix ajp://server_name:8009/eMatrix

ProxyPassReverse /eMatrix ajp://server_name:8010/eMatrix

ProxyPassReverse /eMatrix ajp://server_name:8011/eMatrix

<Proxy balancer://cluster>
BalancerMember ajp://server_name:8009/eMatrix route=marsstage_rmiserver_1 retry=60
BalancerMember ajp://server_name:8010/eMatrix route=marsstage_rmiserver_2 retry=60
BalancerMember ajp://server_name:8011/eMatrix route=marsstage_rmiserver_3 retry=60
</Proxy>



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux