1: Download Installation apache--httpd-2.2.22-win32-x86-no_ssl/sample
2: Find the httpd file below apache2.2/conf/The port sample required to open configuration/80
3: Drag to the bottom of the httpd file to find
<ifmodule ssl_module>
Sslrandomseed Startup Builtin
Sslrandomseed Connect Builtin
</IfModule>
Namevirtualhost *:80
Include F:\parm\work\httpd-java.conf
Configure port number/manually build a folder create a new httpd-java.conf file bring in
F:\parm\work\httpd-java.conf
LoadModule jk_module modules/mod_jk.so//This file usually needs to be downloaded and put into the Apache directory.
LoadModule Rewrite_module modules/mod_rewrite.so
Jkworkersfile conf/workers.properties//This is in the same directory as the httpd file above.
Jklogfile F:/parm/work/mod_jk.log
Jkloglevel Info
<virtualhost *:80>
ServerAdmin xxx@xxx.com
DocumentRoot F:\web\xxx\webapps\ROOT
ServerName xxx.xxx.com Project Domain name
Jkmount/*.jsp Project Name
Jkmount/*.java Project Name
Jkmount/*servlet Project Name
Jkmount/*servlet/* Project Name
Jkmount/* Project name
jkmount/web-inf/* Project Name
ErrorLog F:/parm/work/enview-error_log
Customlog F:/parm/work/enview-access_log Common
</VirtualHost>
#<virtualhost *:80>
# ServerAdmin Xxx@xxx.com
# DocumentRoot E:\web\xxx\webapps\ROOT
# ServerName xxx.xxx.com Project domain name
# Jkmount/*.JSP Project name
# Jkmount/*.java Project name
# Jkmount/*.action Project name
# jkmount/web-inf/* Project Name
# ErrorLog E:/e-logs/eworlding-a-logs/wdp-error_log
# Customlog E:/e-logs/eworlding-a-logs/wdp-access_log Combined
#</virtualhost>
<virtualhost *:80>
ServerAdmin xxx@xxxx.com
DocumentRoot F:\web\xxx\webapps\ROOT
ServerName xx@xxx.com Project Domain name
Jkmount/*.jsp Project Name
Jkmount/*.java Project Name
Jkmount/*.action Project Name
Jkmount/* Project name
jkmount/web-inf/* Project Name
ErrorLog F:/parm/work/enview-error_log
Customlog F:/parm/work/enview-access_log Common
</VirtualHost>
Conf/workers.properties the same directory as the httpd file above
Ps=\
Worker.list=weixin ..... There are multiple items separated by commas
worker.weixin.port=8018//port number must be the same as the server.xml configured in Tomcat
worker.weixin.host=127.0.0.1
Worker.weixin.type=ajp13
Worker.weixin.lbfactor=1
Download Tomcat Find Conf/server.xml file
<?xml version= ' 1.0 ' encoding= ' utf-8 '?>
<!--port number don't write, don't repeat-->.
<server port= "8088" shutdown= "Shutdown" >
<listener classname= "Org.apache.catalina.startup.VersionLoggerListener"/>
<listener classname= "Org.apache.catalina.core.AprLifecycleListener" sslengine= "on"/>
<listener classname= "Org.apache.catalina.core.JasperListener"/>
<listener classname= "Org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<listener classname= "Org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<listener classname= "Org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
<GlobalNamingResources>
<resource name= "Userdatabase" auth= "Container"
Type= "Org.apache.catalina.UserDatabase"
description= "User database" can be updated and saved "
factory= "Org.apache.catalina.users.MemoryUserDatabaseFactory"
Pathname= "Conf/tomcat-users.xml"/>
</GlobalNamingResources>
<service name= "Catalina" >
<!--port number don't write, don't repeat-->.
<connector port= "8016" protocol= "http/1.1"
connectiontimeout= "20000"
Redirectport= "8443" uriencoding= "Utf-8"/>
<!--port number don't write, don't repeat-->.
<connector port= "8018" protocol= "ajp/1.3" redirectport= "8443" uriencoding= "Utf-8"/>
<!--the domain name of the current project combined with the Java-httpd.xml file above-->
<engine name= "Catalina" defaulthost= "xxxxx@xxx.com" >
<realm classname= "Org.apache.catalina.realm.UserDatabaseRealm"
Resourcename= "Userdatabase"/>
</Realm>
<!--the domain name of the current project combined with the Java-httpd.xml file above-->
Unpackwars= "true" autodeploy= "true" >
<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"
Prefix= "Localhost_access_log." suffix= ". txt"
pattern= "%h%l%u%t "%r" %s%b "/>
</Host>
</Engine>
</Service>
</Server>
Don't ask me why my XML file is different from yours because I've deleted a lot of code that's been commented out.
Note: The above as long as the file involved in the directory is best to complete, or it will cause the Apache failed to start
If you have any questions, please email wb_90@foxmail.com
Novice Post Master do not spray
http://blog.csdn.net/chenghui0317/article/details/9373345
http://www.cnblogs.com/xu-xiang/p/5797643.html Alipay Signature Tool class
https://doc.open.alipay.com/doc2/detail.htm?treeId=26&articleId=104387&docType=1# Unification
Apache Tomcat cluster Configuration http://www.iteye.com/topic/1017961/