Robby on Rails: Testing Typo on Lighttpdthoughts.sort_by{|t| t[:topic]}.collect tag:www.robbyonrails.com,2005:TypoTypo2006-09-05T22:12:48-04:00Robby Russellurn:uuid:06bda11be813ba3e09db8641b31bbedd2005-06-18T13:54:00-04:002006-09-05T22:12:48-04:00Testing Typo on Lighttpd<p>did my xml stop working? doesn’t seem to be updating…</p>
<p><b>edit</b>:
no, apparently with <a href="http://www.lighttpd.net/">lighttpd</a>, I needed to add a few rewrites. It looks like <a href="http://typo.leetsoft.com/">Typo</a> made some changes to their rss paths a while ago (after <a href="http://www.planetrubyonrails.org">planet rubyonrails</a> and other places started using my rss feed for syndication). So, I added the following to my lighttpd.conf to allow those to still work.</p>
<code>
<pre>
url.rewrite = (
"^/xml/rss/feed.xml$" => "/xml/rss/feed",
"^/xml/atom/feed.xml$" => "/xml/atom/feed" )
</pre>
</code>
<p>Okay, after taking a minute to test this. I have now simplified this to:</p>
<code>
<pre>
url.rewrite = (
"^/xml/(.*)/feed.xml$" => "/xml/$1/feed")
</pre>
</code><p>did my xml stop working? doesn’t seem to be updating…</p>
<p><b>edit</b>:
no, apparently with <a href="http://www.lighttpd.net/">lighttpd</a>, I needed to add a few rewrites. It looks like <a href="http://typo.leetsoft.com/">Typo</a> made some changes to their rss paths a while ago (after <a href="http://www.planetrubyonrails.org">planet rubyonrails</a> and other places started using my rss feed for syndication). So, I added the following to my lighttpd.conf to allow those to still work.</p>
<code>
<pre>
url.rewrite = (
"^/xml/rss/feed.xml$" => "/xml/rss/feed",
"^/xml/atom/feed.xml$" => "/xml/atom/feed" )
</pre>
</code>
<p>Okay, after taking a minute to test this. I have now simplified this to:</p>
<code>
<pre>
url.rewrite = (
"^/xml/(.*)/feed.xml$" => "/xml/$1/feed")
</pre>
</code>