Thanks,<br><br> Did anyone tried to do something like that with nginx ?<br><br>-Matt<br><br><div><span class="gmail_quote">On 8/1/07, <b class="gmail_sendername">Cocoa Guy</b> <<a href="mailto:cocoa.guy@gmail.com">cocoa.guy@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I ended up using an apache rewrite rule to redirect file uploads to<br>
merb. It took me enough time to get this working, that I'm sharing it<br>in case others find it useful:<br><br>RewriteEngine On<br>RewriteCond %{HTTP:Content-Type} multipart/form-data<br>#RewriteCond %{REQUEST_URI} your-regex
<br>RewriteCond %{REQUEST_METHOD} POST<br>RewriteRule ^/(.*) <a href="http://127.0.0.1:4000/$1">http://127.0.0.1:4000/$1</a> [P]<br><br>With the commented out line, this will let merb handle all multipart<br>post requests. You can un-comment the 3rd line and add your own
<br>expression to further limit what is handed to Merb.<br><br>Cheers,<br>-pete<br>_______________________________________________<br>Merb-devel mailing list<br><a href="mailto:Merb-devel@rubyforge.org">Merb-devel@rubyforge.org
</a><br><a href="http://rubyforge.org/mailman/listinfo/merb-devel">http://rubyforge.org/mailman/listinfo/merb-devel</a><br></blockquote></div>