Hi!
You need to lookup on haproxy acl:
you can define acl rule in this way:
acl test path test
acl test hdr_dom(Host) www.test.com
use_backend test if test
28.01.2013, 11:11, "乃山" <[email protected]>:
Hi,I am using your software:haproxy.It's a good tool.But i come accross a problem about the backend server uri today.The problem is that i don't know how to config the file haproxy.cfg, if i want to forward www.test.com/test/index.html to 192.168.0.2:80/test/index.html or www.test.com:8080/test/ to 192.168.0.2:80/test/I config the backend server like:server test_server 192.168.0.2:80/test.But the result is the same with:server test_server 192.168.0.2:80/There's no uri option in the options of backend server . I have searched lots of pages but found no help.Could you help me?Just give me a simple example.Thank you very much.yous' honestlylenchio2013-01-28乃山

