<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>lighty's life: mod_proxy_core commited to svn</title>
    <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>mod_proxy_core commited to svn</title>
      <description>&lt;p&gt;mod_proxy_core just got commited to &lt;span class="caps"&gt;SVN&lt;/span&gt; and is now available to testers.&lt;/p&gt;


&lt;pre&gt;
server.modules = ( ..., "mod_proxy_core", .. )

## works
$HTTP["url"] =~ "^/proxyme/" {
  proxy-core.balancer = "round-robin" 
  proxy-core.protocol = "http" 
  proxy-core.backends = ( "wikipedia.org" )

  ## to be done
  proxy-core.rewrite-response = (
    "Location" =&amp;gt; ( 
      "^http://en.wikipedia.org/(.*)" =&amp;gt; "http://127.0.0.1:1025/$1" ) )
  proxy-core.rewrite-request = (
    "URI" =&amp;gt; (
      "^/proxyme(/.*)" =&amp;gt; "$1" ) )
}
&lt;/pre&gt;
&lt;p&gt;The above config forwards everything from /proxyme/ to wikipeedia.org. It resolves the domain wikipedia.org and is using one of the address to forward the request. As you already see there will be a request and response header rewriter for rewriting Location headers and URIs.&lt;/p&gt;


&lt;h3&gt;What works ?&lt;/h3&gt;

	&lt;ul&gt;
	&lt;li&gt;Round-Robin Load-Balancing&lt;/li&gt;
		&lt;li&gt;Failover of a backend is down&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;HTTP&lt;/span&gt; proxying&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;HTTP&lt;/span&gt;/1.1&lt;/li&gt;
		&lt;li&gt;Keep-Alive&lt;/li&gt;
	&lt;/ul&gt;


&lt;h3&gt;What is missing&lt;/h3&gt;

	&lt;ul&gt;
	&lt;li&gt;FastCGI, &lt;span class="caps"&gt;SCGI&lt;/span&gt; and &lt;span class="caps"&gt;CGI&lt;/span&gt; backends&lt;/li&gt;
		&lt;li&gt;Header Rewriting&lt;/li&gt;
	&lt;/ul&gt;


&lt;h3&gt;Show me the source, Luke&lt;/h3&gt;

	&lt;p&gt;In the &lt;a href="http://trac.lighttpd.net/trac/browser/branches/lighttpd-merge-1.4.x/src/mod_proxy_core.c"&gt;source-browsers&lt;/a&gt; you can also take a look at the code to see what is going on in there.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Jul 2006 10:06:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:127d2b2f-3d95-48d7-8010-e195c9d77ba9</guid>
      <author>jan</author>
      <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn</link>
      <category>mod_proxy_core</category>
      <trackback:ping>http://blog.lighttpd.net/articles/trackback/1775</trackback:ping>
    </item>
    <item>
      <title>"mod_proxy_core commited to svn" by jake</title>
      <description>so does this mean I dont have to figure out a way to load balance with Apache??

If so, a big freaking thank you to the lighttpd staff :)

--jake

</description>
      <pubDate>Wed, 02 Aug 2006 15:49:24 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:dc728cdb-d19f-442f-9ffe-04b8f469a806</guid>
      <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn#comment-1894</link>
    </item>
    <item>
      <title>"mod_proxy_core commited to svn" by Joe</title>
      <description>Kudos Jan.</description>
      <pubDate>Thu, 20 Jul 2006 20:54:22 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:57c8b4e0-36a5-44fc-88f4-3293d82b3941</guid>
      <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn#comment-1802</link>
    </item>
    <item>
      <title>"mod_proxy_core commited to svn" by Markus Peter</title>
      <description>If the proxy module reads the HTTP expires header and has an own cache of configurable size, Rails and similar systems would only need to send proper expiry headers instead of the static file hack.
</description>
      <pubDate>Tue, 18 Jul 2006 17:30:26 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:5104a421-4fdd-482f-a55d-4a2aed6841ed</guid>
      <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn#comment-1781</link>
    </item>
    <item>
      <title>"mod_proxy_core commited to svn" by Ezra Zygmuntowicz</title>
      <description>Very cool Jan! Thanks for your hard work on Lighty. I will be testiong this right away.</description>
      <pubDate>Tue, 18 Jul 2006 16:17:03 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:dbe4d4f5-cc4f-4347-89c8-2aa2a7020008</guid>
      <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn#comment-1779</link>
    </item>
    <item>
      <title>"mod_proxy_core commited to svn" by Ross</title>
      <description>Will there be a way to send-to-proxy-unless-a-static-file-exists (think: rails page caching), or will we still need to lean on mod_cml?</description>
      <pubDate>Tue, 18 Jul 2006 13:34:51 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:db62a2be-2db0-44e9-b1f2-b4faba842b7c</guid>
      <link>http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn#comment-1778</link>
    </item>
  </channel>
</rss>
