<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: lighttpd code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Mon, 06 Oct 2008 12:46:34 GMT</pubDate>
    <description>DZone Snippets: lighttpd code</description>
    <item>
      <title>Apache2 proxy to local port</title>
      <link>http://snippets.dzone.com/posts/show/1318</link>
      <description>Apache as the receptionist, forwarding requests to and from an internal server (e.g. webrick or lighttpd).&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;VirtualHost *&gt;&lt;br /&gt;        ServerName www.example.com&lt;br /&gt;        ProxyPass / http://localhost:3000/&lt;br /&gt;        ProxyPassReverse / http://localhost:3000/&lt;br /&gt;        ProxyPreserveHost On&lt;br /&gt;&lt;/VirtualHost&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Change 3000 to whatever port you need and make sure the internal server is set up to answer requests on that port (not port 80). The ProxyPreserveHost line is critical to keep all your URLs working correctly.</description>
      <pubDate>Tue, 31 Jan 2006 11:09:16 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1318</guid>
      <author>brainpipe ()</author>
    </item>
  </channel>
</rss>
