1.同时监听多个端口
2.启用代理
3.虚拟主机反向代理
#tomcat支持
LoadModule jk_module modules/mod_jk-apache-2.2.4.so
JkWorkersFile conf/workers.properties
JkMount /*servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.action ajp13
JkMount /*.do ajp13
3.虚拟主机
NameVirtualHost *:8088
NameVirtualHost *:8078
#对所有8078端口代理
ServerName 192.168.100.250:8078
ProxyPass / http://192.168.100.250/
ProxyPassReverse / http://192.168.100.250/
5.workers.properties文件配置
[shm]
info=Scoreboard. Requried for reconfiguration and status with
multiprocess servers.
file=anon
# Defines a load balancer named lb. Use even if you only have
one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status: