Oh it's not a haproxy issue but a webserver one. Because it detects a directory at that location, it will redirect back to itself, with the same URL and add a trailing slash. Unfortunately the server is at 8080 and it will add that port also.
Sergej On Thu, Jul 23, 2009 at 4:39 PM, Rapsey <[email protected]> wrote: > http://somewebaddress/test will result in a 301 to the server for which > haproxy should be proxying requests. So the user is redirected to > http://localhost:8080/test. > http://somewebaddress/test/ works fine. > I tried backend nginx and apache and it is the same. > > Anyone have an idea whats going on? My haproxy config: > > global > maxconn 10000 > pidfile /tmp/haproxy.pid > > defaults > contimeout 5000 > clitimeout 50000 > srvtimeout 50000 > > frontend httpfront *:80 > mode http > option forwardfor > acl acl_str path_end .str > use_backend someservice if acl_str > default_backend nginx > > backend someservice > mode http > option httpclose > server strserver 127.0.0.1:6002 > > backend nginx > mode http > option httpclose > server nginxsrv 127.0.0.1:8080 > > > thank you > Sergej >

