一个apache 配 两个 tomcat

apache 为2.2以上

在apache的httpd.conf中
最后添加
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

NameVirtualHost *:80


<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.healthy-bone.com.cn
DocumentRoot E:/webroot/caltrate
</VirtualHost>


<VirtualHost *:80> 
ServerAdmin 1022@**.com
ServerName **.com
ServerAlias www.**.com
ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/
#Deny from env=BT 
</VirtualHost> 

#<VirtualHost *:80> 
#ServerAdmin 1022@****-****.com.cn
#ServerName ****-****.com.cn
#ServerAlias www.****-****.com.cn
#ProxyPass / ajp://127.0.0.1:9009/
#ProxyPassReverse / ajp://127.0.0.1:9009/
#Deny from env=BT 
#</VirtualHost> 


这篇文章配合上一篇一起看

你可能感兴趣的:(apache,tomcat)