Need help with configuration its not working on a new Archlinux VPS

2016-09-28 Thread Jeffrey Scott Flesher Gmail
This is the haproxy.cfg file I have been running for years on an Ubuntu 12 VPS, I just installed this on an Archlinux VPS and its not working. Note:     acl has_path path / reqirep ^([^\ :]*)\ /(.*) \1\ /ww/\2 if has_path This is because its a Wt app and needs a url that starts off with a ww

Re: haproxy can't bind to mysql port

2015-07-25 Thread Gmail
Also, lsof output shows PID = 11653 and the user/owner/launcher of the process = haproxy. cheers, ; Yuan On 07/26/2015 12:13 AM, Gmail wrote: I am uncertain about syntax but the diff is appname of sorts for the port 80 listener. Someone may comment with more details ; Earlier = *listen

Re: haproxy can't bind to mysql port

2015-07-25 Thread Gmail
) Although I am not aware of the real difference between this and my previous config that allows this to work is. Not a huge issue at this point since it's working. But if anyone wants to take a stab at this, be my guest! Thanks, Tim On Sat, Jul 25, 2015 at 12:15 AM, Gmail longwuy...@gmail.com

Re: haproxy can't bind to mysql port

2015-07-24 Thread Gmail
(LISTEN) Thanks for nudging me in the right direction. All I had to hear was the word 'selinux' and from there it all fell into place! Thanks!! Tim On Fri, Jul 24, 2015 at 8:20 PM, Gmail longwuy...@gmail.com wrote: I could be completely wrong here and I am curious to know the answer myself

Re: haproxy can't bind to mysql port

2015-07-24 Thread Gmail
grepped thru /var/log/messages but not turned up any clues to this one. And I really would like to get the stats interface up and running. Any thoughts here? I'm wondering what I can do to get stats working. Thanks, Tim On Fri, Jul 24, 2015 at 10:52 PM, Gmail longwuy...@gmail.com wrote: Nice

Re: How to run tests after building Haproxy 1.5?

2015-07-22 Thread Gmail
Maybe use software like Tsung, httpress etc. regards, ; Yuan On 07/23/2015 01:33 AM, Rishi Misra wrote: Hello, I rebuilt haproxy1.5 from source and it compiled and runs fine. But how do i run unit/regression tests on it? I notice that there is a tests folder but unable to fin documentation

Re: Support For Postfix

2015-03-16 Thread adcd gmail
Hi, thanks for the reply 2.9.6 On Sun, 15 Mar 2015 19:04:51 +0200, Aleksandar Lazic al-hapr...@none.at wrote: Hi Am 15-03-2015 15:02, schrieb adcd gmail: Hi I am struggling with haproxy and postfix the load balance works well but it doesnt send the client ip address to the backend

Support For Postfix

2015-03-15 Thread adcd gmail
Hi I am struggling with haproxy and postfix the load balance works well but it doesnt send the client ip address to the backend servers I think it because of postfix configuration this what I get /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter:

How do you tell if a url has a path

2014-07-07 Thread Jeffrey Scott Flesher Gmail
I want to check the URL to see if any path is passed, http://domain.tdl or http://domain.tdl/ as such, both of these are considered not to have a path, my problem is that I only want to rewrite the path, if either of the two are true, meaning it has no path, this fails: acl has_path_uri

Re: Need help with url rewrite

2014-07-04 Thread Jeffrey Scott Flesher Gmail
, Baptiste wrote: On Thu, Jul 3, 2014 at 9:38 PM, Jeffrey Scott Flesher Gmail jeffrey.scott.fles...@gmail.com wrote: I have a url that always begins with ww, ie http://domain.tdl/ww/en/..., I want to rewrite the url to include the ww, I tried the below, it works, but changes the path

Need help with url rewrite

2014-07-03 Thread Jeffrey Scott Flesher Gmail
I have a url that always begins with ww, ie http://domain.tdl/ww/en/..., I want to rewrite the url to include the ww, I tried the below, it works, but changes the path or something, because it cause the resources like css and images to not appear (404), does anyone know how to fix this or do

Re: Need help with url rewrite

2014-07-03 Thread Jeffrey Scott Flesher Gmail
on the server, so not mod_rewrite. I hope this is clear enough, not sure how else to say it. Thanks On Thu, 2014-07-03 at 22:40 +0200, Baptiste wrote: On Thu, Jul 3, 2014 at 9:38 PM, Jeffrey Scott Flesher Gmail jeffrey.scott.fles...@gmail.com wrote: I have a url that always begins with ww, ie http

Is it possible to rewrite or redirect based on path

2014-06-25 Thread Jeffrey Scott Flesher Gmail
I have an acl rule to see if path begins with /ww as in domain.tdl/ww/en... acl has_ww_uri path_beg -i /ww If it is just the domain.tdl, I want to rewrite it to /ww ~ example.com/ww Do I do it like something like this: !has_ww_uri reqirep ^([^\ :]*)\ /(.*) \1\ /ww\2 But this does not work,

How can I rewrite based on path?

2014-06-23 Thread Jeffrey Scott Flesher Gmail
I have an acl rule to see if path begins with /ww as in domain.tdl/ww/en... acl has_ww_uri path_beg -i /ww If it is just the domain.tdl, I want to rewrite it to /ww I also have static content I do not want to rename, so I added this rule acl url_static path_end .gif .png .jpg .css .js .pdf .m4v

Need help with configuration file

2014-06-19 Thread Jeffrey Scott Flesher Gmail
Below is the configuration, what I need is for all urls like http//domain.tdl/ww/... to use back end 1 or 2 or default load balancer, and all other request to go to Apache, but I get an error: [ALERT] 170/013846 (5151) : parsing [/etc/haproxy/haproxy.cfg:43] : error detected while parsing