Apache cannot distribute requests to Tomcat processing (that is, the Apache reverse proxy is unsuccessful) when using Apache to implement multi-tomcat load balancing clusters with JK

Source: Internet
Author: User

A few days ago in the Apache implementation of multi-tomcat load Balancing cluster through JK, the reference network configuration to configure the configuration file, access to the existing tomcat in the JSP file found that the Apache prompt URL does not exist, and then check the configuration file and the Tomcat project deployment, There is no problem with the configuration deployment found. Trying to access Apache static pages, there is no problem accessing Tomcat individually via HTTP. Then I guess whether the previous reference to the network configuration has a problem, so continue to query the network other configuration found similar, try to change the parameters are not resolved. Then I thought about it. The reason for this problem should be that Apache did not distribute the HTTP request to Tomcat processing (that is, the Apache reverse proxy was unsuccessful). That is, Apache does not have the ability to implement reverse proxies at all. Finally, the problem is fixed to the configuration file, and should be the Apache configuration file where there is a problem. But check and n times, try to change the various configurations are not resolved. Searching the internet for a long time has not found a solution, and it seems that there are not many people who have encountered this problem. So this question has been bothering me for ten days. I was so digging a character, this did not solve the heart has been not comfortable. Finally God is not a conscientious, today on the Internet and find some use of Apache through JK to achieve multi-tomcat load balancing configuration looked at. Finally see http://www.iteye.com/topic/1126930 Such a post there is a configuration: Remove the Include conf/extra/ Httpd-vhosts.conf comments, inspired me, this post describes the increase of virtual host configuration, because to increase the configuration of the virtual host, you need to remove the Include conf/extra/ The httpd-vhosts.conf comment opens the Virtual host Configuration feature. Then I checked the include conf/extra/of my Apache httpd.conf configuration file Httpd-vhosts.con this line, found not commented out, the default is to open the virtual host configuration function, and I did not use or increase the configuration of the virtual host. So I tried to comment out this line, which is to turn off the virtual host Configuration feature. The result is a miracle, and the problem is solved. Such a small configuration bothered me for ten days. Oh, I almost forgot. The Apache version that I used is the latest edition of 2.4. Not the previous version is the default to turn this feature off, so you will not experience this issue. Oh, no experience, it's horrible! A small default configuration change that bothers us these newbies. Here again thank http://www.iteye.com/topic/1126930 this post of the owner, if not to see this thread was inspired, this issue still do not know toHow long is it bothering you? Also with this article as a souvenir, later encountered this problem can be quickly resolved. I hope this blog post can also help to meet similar problems of small partners.

Apache cannot distribute requests to Tomcat processing (that is, the Apache reverse proxy is unsuccessful) when using Apache to implement multiple Tomcat load balancing clusters with JK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.