Categories
Programming

Make HAProxy Strip Spaces From a Request Header

There is some shared code out in the wild that browser extensions are using to make requests, which might cause problems if you parse the Referer header in your website. The issue is with the following request header, which you might see in your logs as Referer: http://+www.example.com: Referer: http:// www.example.com That space between the […]

Categories
Programming

Multiple Certificates for the Same HAProxy Front End Binding

We have a smart website that allows a single mutli-tenant application to server requests for thousands of different domains. The content is keyed from the host name, so you only see the content for the website you are visiting. The volume is handled by a pair of HAProxy servers that sit over a web farm. […]

Categories
Programming

Remove Multiple Headers with HAProxy

Do you ever wonder if your server is giving away too much information in the HTTP headers? This problem is easily fixed with HAProxy by removing a header on your backend… rspidel Server You can also remove multiple headers using the below syntax. rspidel (Server|X-AspNet-Version)