Perhaps the new try_file directive and an internal backend are what you need.&nbsp; I&#39;m still in 0.6.x land on my production boxes, but I think it is something like this (from igor&#39;s docs):<br><pre>location / {<br>    try_files      /system/maintenance.html<br>
                   $uri  $uri/index.html  $uri.html<br>                   @mongrel;<br>}<br><br>location @mongrel {<br>    proxy_pass     <a href="http://mongrel">http://mongrel</a>;<br>}<br></pre>This will try the given $uri, index.html as subdirectory, the uri as HTML file, and finally resolve to the @mongrel backend.&nbsp; If you are using 0.6.x or if that doesn&#39;t work, you can always use the old school 404 redirector like so:<br>
<br><pre>location / {<br>  error_page 404 = @mongrel;<br>}<br><br>location @mongrel {<br>    proxy_pass     <a href="http://mongrel">http://mongrel</a>;<br>}<br></pre><br>The rest of the magic is up to you (I think you have it anyway).<br>
- Merlin<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 9:17 PM, Gavin Kistner <span dir="ltr">&lt;<a href="mailto:phrogz@mac.com">phrogz@mac.com</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;">
Let me try this again, more tersely:<br>
<br>
Why does this (pared down) config...<br>
 &nbsp;<a href="http://pastie.org/395896" target="_blank">http://pastie.org/395896</a><br>
...give me a 404 when I use a URL like...<br>
 &nbsp;<a href="http://localhost/ObjJob/foo" target="_blank">http://localhost/ObjJob/foo</a><br>
...instead of proxying to port 9901 as desired?<br>
<br>
What&#39;s the right way to set up a virtual directory like this?<br>
<br>
The only &#39;fix&#39; I&#39;ve found so far is to comment out lines 29 and 32, causing all static files to be proxied and served by the proxy app instead.<br>
<br>
</blockquote></div><br>