<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[haproxy acl path and method]]></title><description><![CDATA[<p dir="auto">I'm trying to create a rule like this :</p>
<p dir="auto"><em><strong>path_beg /api/user/ &amp;&amp; method GET</strong></em></p>
<p dir="auto">I need specifically validate a URL and method it uses</p>
<p dir="auto">but it doesn't works, some ideas?</p>
]]></description><link>https://forum.netgate.com/topic/150051/haproxy-acl-path-and-method</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 03:18:05 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/150051.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Jan 2020 17:40:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to haproxy acl path and method on Mon, 17 Feb 2020 20:07:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xivexell" aria-label="Profile: Xivexell">@<bdi>Xivexell</bdi></a><br />
I notice that you have the "NOT" checkbox set.. So i wonder what you expect to happen.?</p>
<p dir="auto">If the user is 'NOT requesting /api/user' AND the user is 'NOT using method GET/POST/DELETE' then do something.?</p>
<p dir="auto">Or would you perhaps prefer to have and 'OR' = || between those 2 acls.?</p>
<p dir="auto"><img src="/assets/uploads/files/1581969975163-add0a4e8-3533-48fe-a796-f6a808eb60ec-image.png" alt="add0a4e8-3533-48fe-a796-f6a808eb60ec-image.png" class="img-markdown  img-fluid" /><br />
Result in haproxy.cfg (see the ! signs and the | ..):</p>
<pre><code>	acl			Rule1	var(txn.txnpath) -m beg -i /api/user/
	acl			Rule2	method GET POST DELETE
	http-request deny deny_status 402  if  !Rule1 || !Rule2 
</code></pre>
]]></description><link>https://forum.netgate.com/post/892155</link><guid isPermaLink="true">https://forum.netgate.com/post/892155</guid><dc:creator><![CDATA[PiBa]]></dc:creator><pubDate>Mon, 17 Feb 2020 20:07:21 GMT</pubDate></item><item><title><![CDATA[Reply to haproxy acl path and method on Mon, 17 Feb 2020 16:42:09 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your answer, I try it,  works when I have one path, but If I have other rules, it doesn't works <img src="/assets/uploads/files/1581957658954-c992ce7a-1e0a-400c-bb3d-d8af8957eda1-imagen.png" alt="c992ce7a-1e0a-400c-bb3d-d8af8957eda1-imagen.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.netgate.com/post/892120</link><guid isPermaLink="true">https://forum.netgate.com/post/892120</guid><dc:creator><![CDATA[Xivexell]]></dc:creator><pubDate>Mon, 17 Feb 2020 16:42:09 GMT</pubDate></item><item><title><![CDATA[Reply to haproxy acl path and method on Tue, 28 Jan 2020 18:11:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xivexell" aria-label="Profile: Xivexell">@<bdi>Xivexell</bdi></a><br />
I would try something like this:</p>
<pre><code>acl check1 path_beg /api/user/
acl check2 method GET
http-request deny 404 if check1 check2
</code></pre>
]]></description><link>https://forum.netgate.com/post/888361</link><guid isPermaLink="true">https://forum.netgate.com/post/888361</guid><dc:creator><![CDATA[PiBa]]></dc:creator><pubDate>Tue, 28 Jan 2020 18:11:28 GMT</pubDate></item></channel></rss>