<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Makl Ndrix &#187; reverse proxy</title>
	<atom:link href="http://michaelhendrickx.com/tag/reverse-proxy/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelhendrickx.com</link>
	<description>may contain traces of nuts</description>
	<lastBuildDate>Thu, 17 May 2012 21:03:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Reverse proxy for sharepoint on Linux using HAProxy</title>
		<link>http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html</link>
		<comments>http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html#comments</comments>
		<pubDate>Wed, 16 Jun 2010 04:02:42 +0000</pubDate>
		<dc:creator>Michael Hendrickx</dc:creator>
				<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reverse proxy]]></category>

		<guid isPermaLink="false">http://michaelhendrickx.com/?p=289</guid>
		<description><![CDATA[At Nakheel, we needed to load balance a new sharepoint instance. Our new sharepoint is single sign on, and was running on 2 web servers which needed to be load balanced. We played around with Apache for a while, and it&#8217;s awesome proxy balancer, but it gave us the problem that it was always asking [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html' addthis:title='Reverse proxy for sharepoint on Linux using HAProxy'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaelhendrickx.com/wp-content/uploads/2010/06/fo.jpg"><img src="http://michaelhendrickx.com/wp-content/uploads/2010/06/fo.jpg" alt="" title="fo" width="116" height="107" align="right" /></a>At Nakheel, we needed to load balance a new sharepoint instance.  Our new sharepoint is single sign on, and was running on 2 web servers which needed to be load balanced.  We played around with Apache for a while, and it&#8217;s awesome <a href="http://httpd.apache.org/docs/2.1/mod/mod_proxy_balancer.html">proxy balancer</a>, but it gave us the problem that it was always <strong>asking for a username and password.</strong></p>
<p>Apache was used, since I have a reasonable amount of experience with it load balancing servers such as Webrick, etc.  After a few frustrating hours of messing with <a href="http://www.innovation.ch/personal/ronald/ntlm.html">NTLM</a>, <a href="http://certifiedgeek.blogsome.com/">Christian</a> proposed <a href="http://certifiedgeek.blogsome.com/2010/06/15/open-source-load-balancer-software-2010/">a few alternatives</a> for this.  </p>
<p>Having this in mind, we decided to go for <a href="http://haproxy.1wt.eu/">HAProxy</a>, to provide load balancing and a reverse proxy for our sharepoint instance.  The good this is that it is a very simple tool, it accept HTTP conenctions, and forward them.  </p>
<p>Below is our simplified <strong>/etc/haproxy/haproxy.cfg</strong> file</p>
<pre>
global
        maxconn 4096
        user haproxy
        group haproxy
        daemon
        # debug

defaults
        mode    http
        option  forwardfor
        log     127.0.0.1 local0 notice
        maxconn 2000
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000

backend sharepoint
        balance roundrobin
        option redispatch
        cookie SERVERID insert nocache
        server sp1      172.30.16.11:80  cookie spsrv01 weight 30 check
        server sp2      172.30.16.12:80  cookie spsrv02 weight 30 check

frontend httpid
        bind *:80
        acl hosts_sharepoint hdr_end(host) -i intranet.domain.com
        acl hosts_sharepoint hdr_end(host) -i intranet.domain.com:80
        use_backend sharepoint if hosts_sharepoint
        default_backend sharepoint
</pre>
<p>The configuration is very straightforward, and it got rid of our continuous username/password boxes, especially under firefox.</p>
<p>Hope this helps,<br />
Michael</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

