frontend academia
bind *:80
mode http
acl host-is-academia-flow hdr(host) -i flow.academia.local
acl host-is-academia hdr(host) -i academia.local
acl is-insurance path_beg /services/insurance/
acl is-policy path_beg /services/policy/
acl is-quote path_beg /services/quote/
acl is-audit path_beg /services/audit/
acl is-data path_beg /services/data/
acl is-user path_beg /services/user/
acl is-tds path_beg /services/tds/
use_backend academia-insurance if host-is-academia is-insurance
use_backend academia-policy if host-is-academia is-policy
use_backend academia-quote if host-is-academia is-quote
use_backend academia-audit if host-is-academia is-audit
use_backend academia-data if host-is-academia is-data
use_backend academia-user if host-is-academia is-user
use_backend academia-tds if host-is-academia is-tds
use_backend academia-flow if host-is-academia-flow
use_backend academia-admin if host-is-academia
default_backend academia-apache
backend academia-apache
server apache 127.0.0.1:2013
mode http
backend academia-insurance
http-request set-path "%[path,regsub(^/services/insurance/,/)]"
server tomcat 127.0.0.1:16002
mode http
backend academia-data
http-request set-path "%[path,regsub(^/services/data/,/)]"
server tomcat 127.0.0.1:16001
mode http
backend academia-user
http-request set-path "%[path,regsub(^/services/user/,/)]"
server tomcat 127.0.0.1:16001
mode http
backend academia-flow
server tomcat 127.0.0.1:16001
mode http
backend academia-policy
http-request set-path "%[path,regsub(^/services/policy/,/)]"
server tomcat 127.0.0.1:9002
mode http
backend academia-quote
http-request set-path "%[path,regsub(^/services/quote/,/)]"
server tomcat 127.0.0.1:9001
mode http
backend academia-audit
http-request set-path "%[path,regsub(^/services/audit/,/)]"
server tomcat 127.0.0.1:9003
mode http
backend academia-tds
http-request set-path "%[path,regsub(^/services/tds/,/)]"
server tomcat 127.0.0.1:9000
mode http
backend academia-admin
server nodejs 127.0.0.1:3000
mode http