apache+tomcat负载均衡后,域名如何直接绑定子目录
集群配置采用Apache 的代理proxy模式实现
现在集群是配置好了,但不知道怎么样直接让域名绑定子目录
Xml代码
1.<VirtualHost *:80>
2. ServerAdmin admin@163.com
3. ServerName localhost
4. ServerAlias localhost
5. ProxyPass / balancer://RHEL5-1/ lbmethod=byrequests stickysession=JSESSIONID nofailover=Off timeout=5 maxattempts=3
6. ProxyPassReverse / balancer://RHEL5-1/
7.
8. ErrorLog logs/easytv-error_log
9. CustomLog logs/easytv-access_log common
10.</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@163.com
ServerName localhost
ServerAlias localhost
ProxyPass / balancer://RHEL5-1/ lbmethod=byrequests stickysession=JSESSIONID nofailover=Off timeout=5 maxattempts=3
ProxyPassReverse / balancer://RHEL5-1/
ErrorLog logs/easytv-error_log
CustomLog logs/easytv-access_log common
</VirtualHost>
现在这样配置通过http://localhost直接访问是tomcat的界面,要通过htpp://localhost/test才能访问项目
怎么样配置使http://localhost能直接访问到test项目
--------------------------------------------------------------------------------