Re: Subdomain wildcard redirect

2014-06-10 Thread Buri Arslon
Thanks! I'd like to send a redirect using 301.


On Tue, Jun 10, 2014 at 2:17 AM, Baptiste bed...@gmail.com wrote:

 On Tue, Jun 10, 2014 at 6:48 AM, Buri Arslon buri...@gmail.com wrote:
  Hi guys!
 
  How can I redirect all subdomains to subfolder like:
 
  https://abc.domain.com/ to https://domain.com/category/abc
 
 
  thanks,
  -- buriwoy

 Hi Buri,

 do you want to send a redirect using a 30x or do you want to rewrite
 the request when forwarded to the server?

 Baptiste



Subdomain wildcard redirect

2014-06-09 Thread Buri Arslon
Hi guys!

How can I redirect all subdomains to subfolder like:

https://abc.domain.com/ to https://domain.com/category/abc


thanks,
-- buriwoy


Subscribe

2012-09-25 Thread Buri Arslon
My message didn't appear in the archive


Re: Can't configure haproxy

2012-09-25 Thread Buri Arslon
Thanks!

I sent a message to haproxy@formilux.org 3 times but it didn't appear in
the mailing list archive. And I saw several mails titled Subscribe and
decided to try it. :)

As I got your response after Subscribe maybe it worked ;D

I added option http-server-close to my frontend and backend servers. That
fixed my problem.

Thanks for your support,
-- buriwoy


On Tue, Sep 25, 2012 at 10:31 PM, Baptiste bed...@gmail.com wrote:

 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 buri...@gmail.com 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