<?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>Synthesis: lighttpd / apache / textdrive speed up!</title>
    <link>http://synthesis.sbecker.net/articles/2005/07/29/lighttpd-apache-textdrive-speed-up</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>by Scott Becker</description>
    <item>
      <title>lighttpd / apache / textdrive speed up!</title>
      <description>&lt;p&gt;My websites running on textdrive were running really slow, which was frustrating since I&amp;#8217;ve heard all the talk about how lighttpd is supposed to be fast fast fast. I was starting to think it was because my sites are on a shared server with many other websites. To my relief, it wasn&amp;#8217;t that at all. After digging around on their forums, I discovered the issue!&lt;/p&gt;


	&lt;p&gt;To quote user &amp;#8216;jmoses&amp;#8217;:&lt;/p&gt;


	&lt;p&gt;&amp;#8220;The slowness is caused by the Apache proxying. It takes apache &lt;em&gt;forever&lt;/em&gt; to lookup the domain name to forward to.&lt;/p&gt;


	&lt;p&gt;If you change your ProxyPass and ProxyPassReverse from &lt;code&gt;http://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&lt;/code&gt; to &lt;code&gt;http://localhost:&amp;lt;port&amp;gt;&lt;/code&gt; you should see a dramatic speedup. I went from ~5-8s a request, to &lt;1s."&lt;/p&gt;


	&lt;p&gt;Well, I just made the change, and bam, my sites are way faster.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://forum.textdrive.com/viewtopic.php?id=4591"&gt;See the whole thread.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;They really need to change this on the &lt;a href="http://manuals.textdrive.com/read/chapter/62#page139"&gt;textdrive manuals site.&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 29 Jul 2005 19:01:55 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:079f7afd0baaced6c19d81428d5f23fe</guid>
      <author>sbecker</author>
      <link>http://synthesis.sbecker.net/articles/2005/07/29/lighttpd-apache-textdrive-speed-up</link>
      <category>Ruby on Rails</category>
      <category>Web Development</category>
    </item>
  </channel>
</rss>
