Log the Apache + Tomcat consolidated installation configuration tutorial in Windows

Source: Internet
Author: User

Maybe there are a lot of tutorials on the Internet, and this is just a record of my own setup.

Need to simulate the actual environment to do some validation work, here to build the environment is also trying to be simple. Instead of compiling the Apache Http Server itself, I downloaded a compiled installation package: http://mirror.bit.edu.cn/apache//httpd/binaries/win32/ Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi

With Tomcat integration, there are generally three ways to Jk,http_proxy and Ajp_proxy, here in the case of JK. Need to pass the MOD_JK module, you can download the corresponding version here: http://mirrors.cnnic.cn/apache/tomcat/tomcat-connectors/jk/binaries/windows/

After decompression, place in the Modules folder in the Apache installation directory.

Then modify the configuration in the httpd.conf. Add Configuration:

LoadModule jk_module modules/mod_jk.so jkworkersfile conf/workers.properties

The mod_jk.so module is loaded and the configuration file is workers.properties.

Next Configure Worker.properties

workers.tomcat_home=d:apache-tomcat-6.0.41 ps=/worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host= localhost worker.ajp13.type=ajp13

The main configuration is the directory of Tomcat, which has AJP the Protocol's port number version and address.

The next step is to tell Apache what request to Tomcat to handle.

<virtualhost *> ServerAdmin localhost documentroot e:/ ServerName localhost directoryindex index.html index.htm index.jsp index.action jkmount/*web-inf ajp13 jkmount/*j_sprin G_security_check ajp13 jkmount/*.action ajp13 jkmount/servlet/* ajp13 jkmount/games/* ajp13 jkmount/*.jsp ajp13 JkMoun T/*.do ajp13 jkmount/*.action ajp13 </VirtualHost>

Finally, remember to open access permissions.

<directory/> Allow from all </Directory>

Start Tomcat and Apache, all over.

The other two ways, more simple configuration, can refer to: http://www.ibm.com/developerworks/cn/opensource/os-lo-apache-tomcat/

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.