Having just read the entire conversation and coming perhaps a bit too late in the game, I would also like to champion a try_* identifier and I really like the try_these identifier for an extremely general facility that tries each _file, /uri/that/works, or even <a href="http://backends">http://backends</a> in whatever order I specify.&nbsp; I would stay away from the test_* family of directives unless we are going to add some kind of testing facility outside of if.<br>
<br><div class="gmail_quote">On Fri, Dec 12, 2008 at 2:01 PM, KT Walrus <span dir="ltr">&lt;<a href="mailto:kevin@my.walr.us">kevin@my.walr.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My suggestion is:<br>
<br>
select_uri_file with the default selection being the last file listed and first file that exists is used.<div><div></div><div class="Wj3C7c"><br>
<br>
On Dec 12, 2008, at 12:01 PM, Ezra Zygmuntowicz wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Taking a hint from javacript how about:<br>
<br>
try_these &nbsp; $uri &nbsp;$uri/index.html &nbsp;$uri.html &nbsp;@mongrel;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Or maybe try_these_files<br>
<br>
Cheers-<br>
Ezra Zygmuntowicz<br>
<a href="mailto:ez@engineyard.com" target="_blank">ez@engineyard.com</a><br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>