# 加载 mod_jk 模块
LoadModule jk_module modules/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /*.jsp tomcat
JkMount /*.vmx tomcat
JkMount /epg/* tomcat
workers.properties文件内容为:
# Defining a worker named worker1 and of type ajp13
worker.list=tomcat
# Set properties for worker
worker.tomcat.type=ajp13
worker.tomcat.host=localhost
worker.tomcat.port=8009
worker.tomcat.lbfactor=50
worker.tomcat.cachesize=10
worker.tomcat.cache_timeout=600
worker.tomcat.socket_keepalive=1
worker.tomcat.socket_timeout=300
上面配置 使apache支持tomcat.
下面配置 使apache支持php:
Include conf/extra/httpd-php5.conf
httpd-php5.conf文件内容为:
LoadModule php5_module "E:/Program Files/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php .phtml .shtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
PHPIniDir "E:/Program Files/PHP"