<VirtualHost *:80>
 ServerName lilianwang.com
 ProxyRequests Off
 <Proxy balancer://my_cluster>
  BalancerMember ajp://192.168.1.253:8009 loadfactor=1 route=jboss1
  BalancerMember ajp://192.168.1.254:8009 loadfactor=1 route=jboss2
  #BalancerMember http://192.168.1.253:8080/ticket-shootingclub loadfactor=1
  #BalancerMember http://192.168.1.254:8080/ticket-shootingclub loadfactor=1
 </Proxy>
 ProxyPass / balancer://my_cluster/ stickysession=JSESSIONID nofailover=On
 ProxyPassReverse / balancer://my_cluster/

#Options Indexes FollowSymLinks
<IfModule rewrite_module>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^news.lilianwang.com
RewriteRule /([0-9]+).html /newsview.html?newsid=$1 [PT]
RewriteCond %{HTTP_HOST} ^ticket.lilianwang.com
RewriteRule /scenics/([0-9]+).html /dislogin/scenicmodel.html?scenicid=$1 [PT,NC]
RewriteCond %{HTTP_HOST} ^mall.lilianwang.com
RewriteRule /products/([0-9]+).html /dislogin/productview.html?productid=$1 [PT]
RewriteCond %{HTTP_HOST} ^travel.lilianwang.com
RewriteRule /routes/([0-9]+)_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]+)_([0-9]+).html /dislogin/routemodel.html?routeid=$1&viewdate=$2-$3-$4&from=$5&op=$6 [PT]

#RewriteRule /([0-9]+)_([0-9]+).html /content.jsp?id=$1&id2=$2 [PT]
#RedirectMatch ^(.*)/([^/]*)\.com$ $1/index.jsp?brand=$2
RewriteLogLevel 9
RewriteLog "/var/log/rewrite.log"
</IfModule>

#ErrorLog "| /usr/bin/logger -t httpd -p local4.info"
#CustomLog "| /usr/bin/logger -t apache -p local5.info" combined
 ErrorLog "logs/my_error.log"
 CustomLog "logs/my_access.log" common
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

</VirtualHost>