<?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[Reverse proxy (HAproxy) not redirecting to correct servers]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm running HAproxy full and have set up a bunch of front ends connecting to two servers.<br />
I've named them by their domain name, but am not sure how to tell HAproxy that when traffic comes in on port 80 with the host header for a particular domain, to pick a particular backend server.</p>
<p dir="auto">It looks like you can pass through cookies and text, but i'm not sure how to or if I can use that to ensure the right frontend is matched up to the correct backend server.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.netgate.com/topic/56421/reverse-proxy-haproxy-not-redirecting-to-correct-servers</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 21:48:16 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/56421.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 May 2013 10:55:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reverse proxy (HAproxy) not redirecting to correct servers on Wed, 22 May 2013 21:24:35 GMT]]></title><description><![CDATA[<p dir="auto">Thanks PiBa,<br />
I'm currently not using the http close option for the frontends, but the ACL is configured.<br />
I'll make the change tonight and see how it goes.</p>
<p dir="auto">Thanks again for your help</p>
]]></description><link>https://forum.netgate.com/post/396824</link><guid isPermaLink="true">https://forum.netgate.com/post/396824</guid><dc:creator><![CDATA[pfsenses]]></dc:creator><pubDate>Wed, 22 May 2013 21:24:35 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse proxy (HAproxy) not redirecting to correct servers on Wed, 22 May 2013 18:42:33 GMT]]></title><description><![CDATA[<p dir="auto">Hey, it works, but you do have to close the connections 'forcefully'.</p>
<p dir="auto">Check the following option for the frontends: "Use 'httpclose' option"</p>
<p dir="auto">and set a acl like this:<br />
Name:"PathACL" Expression:"Path starts with" Value: "/Path"</p>
<p dir="auto">please note that the backend does need to serve its content also from http://backend/Path/ folder..</p>
]]></description><link>https://forum.netgate.com/post/396800</link><guid isPermaLink="true">https://forum.netgate.com/post/396800</guid><dc:creator><![CDATA[PiBa]]></dc:creator><pubDate>Wed, 22 May 2013 18:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse proxy (HAproxy) not redirecting to correct servers on Wed, 22 May 2013 08:16:51 GMT]]></title><description><![CDATA[<p dir="auto">Or not, having quite a bit of trouble getting a path based ACL working.</p>
<p dir="auto">I'd like to set up my ACL so that I can browse to http://[mydomain]/Path and be redirected to a specific backend.<br />
I've attempted most of the path based rules, has anyone got this working?</p>
]]></description><link>https://forum.netgate.com/post/396729</link><guid isPermaLink="true">https://forum.netgate.com/post/396729</guid><dc:creator><![CDATA[pfsenses]]></dc:creator><pubDate>Wed, 22 May 2013 08:16:51 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse proxy (HAproxy) not redirecting to correct servers on Tue, 21 May 2013 06:52:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi PiBa,<br />
That seems to have sorted that issue, i'm now able to use HAProxy to reverse proxy through to various hosts depending which domain name is requested.<br />
I'm now trying to use a path based ACL to redirect to my nagios server when nagios is in the path, but I should have that going shortly.</p>
<p dir="auto">Thanks again for your help.</p>
]]></description><link>https://forum.netgate.com/post/396572</link><guid isPermaLink="true">https://forum.netgate.com/post/396572</guid><dc:creator><![CDATA[pfsenses]]></dc:creator><pubDate>Tue, 21 May 2013 06:52:26 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse proxy (HAproxy) not redirecting to correct servers on Mon, 20 May 2013 23:06:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi PiBa,<br />
Thank you very much for your time and help.<br />
i'm hoping to get a chance to try your recommendation out tonight and will let you know how I get on.</p>
]]></description><link>https://forum.netgate.com/post/396522</link><guid isPermaLink="true">https://forum.netgate.com/post/396522</guid><dc:creator><![CDATA[pfsenses]]></dc:creator><pubDate>Mon, 20 May 2013 23:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse proxy (HAproxy) not redirecting to correct servers on Mon, 20 May 2013 13:46:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi, when you have 1 ip:port to listen on, and need to decide to send the request to different backends depending on the requested domain, it is required to use 'acl' access control lists with proper criteria.. this doesn't seam to be possible from the "haproxy-full" package, you should probably install the "haproxy" package, or use "haproxy-devel". You can create 2 frontend configurations, and add a "Access Control lists":</p>
<p dir="auto">Name: "anythingyoulike" Expression: "Host matches:" Value: "your.domain.com"</p>
<p dir="auto">If you also need this functionality with 'https' then you need to use the "haproxy-devel" package based on the newer HAProxy1.5 branch which has SSL-offloading and SNI support.</p>
]]></description><link>https://forum.netgate.com/post/396415</link><guid isPermaLink="true">https://forum.netgate.com/post/396415</guid><dc:creator><![CDATA[PiBa]]></dc:creator><pubDate>Mon, 20 May 2013 13:46:48 GMT</pubDate></item></channel></rss>