Hey, First, you don't need to subscribe to send a mail to the ML :)
I think you're missing an "option http-server-close" in your default section (or locally in your frontend / backends). Currently, you're using the tunnel mode, where a connection is established to a server andis like a tunnel where HAProxy can't see anything. For more info about HAProxy HTTP connections more, you can read: http://www.exceliance.fr/sites/default/files/biblio/aloha_load_balancer_http_connection_mode_memo2.pdf It applies to the Aloha load-balancer, which uses HAProxy :) By the way, you should add a keyword "cookie <value>" (replace <value> by whatever you want, usually server name) if you want to enable cookie persistence. Add also a check parameter to allow haproxy to run health checks (and looj for http-chk in the doculentation) You can disable cookie persistence on the static farm, it is useless. cheers On Wed, Sep 26, 2012 at 2:36 AM, Buri Arslon <[email protected]> wrote: > Hi everybody, > > I'm new to haproxy. I can't figure out how to correctly configure haproxy. > > I bought ssl certificate for my site and www subdomain was included. I can't > afford buying wildcard certificate for my project. That's why I want to use > https://www.mysite.com/static for static files which is served by Nginx at > the port :81. > > And http must be redirected to https. (I think it is working). > > Here is my config: https://gist.github.com/3785284 > > So, if http://mysite.com then it should be redirected to https://mysite.com > > https://www.mysite.com/static/css/mystyle.css should use static backend > > https://www.mysite.com/notstatic/link should be redirected to > https://mysite.com/notstatic/link > > > > What am I doing wrong? Any help, hint would be appreciated. > > Thanks, > buriwoy

