日期:2014-05-17 浏览次数:20968 次
修改apache的httpd.conf
?
1.?添加模块
?
LoadModule?proxy_module?modules/mod_proxy.so
LoadModule?proxy_ajp_module?modules/mod_proxy_ajp.so
LoadModule?proxy_balancer_module?modules/mod_proxy_balancer.so
?
2.?配置Virtual?hosts
打开Virtual?hosts?即去掉Include?conf/extra/httpd-vhosts.conf一行的注释,
??同时修改文件httpd-vhosts.conf,添加如下虚拟机信息
<VirtualHost?*:80>
ServerAdmin?mxl001@126.com?
ServerName?localhost?
ServerAlias?localhost?
ProxyPass?/?balancer://tomcatcluster/?stickysession=jsessionid?nofailover=On?
ProxyPassReverse?/?balancer://tomcatcluster/?
ErrorLog?"logs/dummy-host.zypwt.com-error.log"