Error Detected While Parsing Switching Rule
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top HAProxy parsing errors up vote 0 down vote favorite i have 3 servers --> haproxy - server1(uk) - server2(ru) i followed this tutorial and created ip for ru.subnets now in my /etc/haproxy i have these files: haproxy.conf ru.subnets in my haproxy.conf: frontend http-frontend bind *:80 mode http reqadd X-Forwarded-Proto:\ http acl blog_acl path_beg /wp-admin acl ru_acl src -f RU.subnets use_backend wwwru if ru_acl use_backend wwwbackend if !ru_acl use_backend wwwru if blog_acl default_backend wwwbackend everything looks okay but when i try to load config file in my haproxy i get these errors: [ALERT] 170/084453 (4661) : parsing [/etc/haproxy/haproxy.cfg:37] : error detected while parsing ACL 'ru_acl'. [ALERT] 170/084453 (4661) : parsing [/etc/haproxy/haproxy.cfg:39] : error detected while parsing switching rule. [ALERT] 170/084453 (4661) : parsing [/etc/haproxy/haproxy.cfg:40] : error detected while parsing switching rule. [ALERT] 170/084453 (4661) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg [ALERT] 170/084453 (4661) : Fatal errors found in configuration. load-balancing haproxy geolocation share|improve this question edited Jun 20 '15 at 10:05 Andrew Schulman 5,17881835 asked Jun 20 '15 at 8:46 Ibbi co 1 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Try this instead :-) frontend http-frontend bind *:80 mode http reqadd X-Forwarded-Proto:\ http acl blog_acl path_beg /wp-admin use_backend wwwru if { src -f RU.subnets } use_backend wwwbackend { src -f RU.subnets } use_backend wwwru if blog_acl default_backend wwwbackend share|improve this answer edited Jun 29 '15 at 0:43 answered Jun 21 '15 at 18:32 Jnrprimo 1368 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy
Sign in Pricing Blog Support Search GitHub This repository Watch 64 Star 688 Fork 187 QubitProducts/bamboo Code Issues 34 Pull requests 4 Projects 1 Pulse Graphs New issue In GUI, I can update a empty ACL and destroy haproxy config #119 Closed g0hacker opened this Issue Apr 17, 2015 · 6 comments Projects None yet Labels bug Milestone 0.3 Assignees No one assigned 3 participants g0hacker commented Apr 17, 2015 I will http://serverfault.com/questions/700403/haproxy-parsing-errors get the following log if I update a empty ACL: [ALERT] 106/065607 (51) : parsing [/etc/haproxy/haproxy.cfg:1035] : error detected while parsing switching rule : no such ACL : '::myapp-websocket-aclrule'. In fact, there are the following parts in haproxy.cfg: acl ::myapp-websocket-aclrule use_backend ::myapp-websocket-cluster if ::myapp-websocket-aclrule I think that it's not robust. activars commented Apr 17, 2015 The https://github.com/QubitProducts/bamboo/issues/119 UI and API needs improvements. When haproxy reload, it should validate whether the content is valid before trigger the reload. g0hacker commented Apr 18, 2015 I couldn't agree more activars added the bug label Apr 18, 2015 akamalov referenced this issue Jun 12, 2015 Closed Bamboo Not Listening on Port :80 and Not Load Balancing #135 bluepeppers added this to the 0.3 milestone Jul 24, 2015 bluepeppers commented Sep 3, 2015 See #158 bluepeppers commented Sep 8, 2015 Template validation is now supported, @hyper-carrot would you like to keep this open for UI ACL validation, or is this good enough for you? g0hacker commented Sep 9, 2015 @bluepeppers Thank you for reminding, but my central focus have changed. So, I will keep my attention in my spare time. :-) bluepeppers commented Sep 9, 2015 Cool, closing then 👍 bluepeppers closed this Sep 9, 2015 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Tr
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] restricting most access to a site with http auth haproxy Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 8 of 8 Thread: restricting most access to a site with http auth haproxy Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode November 6th, 2015 #1 Matt_Davies View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Sep 2013 Beans 8 restricting most access to a site with http auth haproxy Hi everyone I've just started digging into haproxy today, and so far, so good. I've restricted access to a site, with http basic auth, but my next hurdle is to restrict all access, apart from a couple of URL's on the site.(API's access them and adding http auth to those would be a pain) So, lets say the web site is called ilovemydogsomuchithurts.com, and the following code is restricting access, how would I change the code to NOT restrict access to ilovemydogsomuchithurts.com/kennelupdates.json and ilovemydogsomuchithurts.com/puppyupdates.json? I'm seeing some reference to url_reg, but can't quite work out how to accomplish this. Any tips, or links to docs would be very much appreciated. Code: userlist UsersFor_kennel user username insecure-password password frontend doghttps bind public_ip:443 ssl crt /etc/ssl/private/dog.crt reqadd X-Forwarded-Proto:\ https default_backend dog frontend doghttp bind public_ip:80 reqadd X-Forwarded-Proto:\ http default_backend dog backend dog acl AuthOkay_kennel http_auth(UsersFor_kennel) http-request auth realm kennel if !Au