Thanks,
Did anyone tried to do something like that with nginx ?
-Matt
On 8/1/07, Cocoa Guy <[EMAIL PROTECTED]> wrote:
>
> I ended up using an apache rewrite rule to redirect file uploads to
> merb. It took me enough time to get this working, that I'm sharing it
> in case others find it useful:
>
> RewriteEngine On
> RewriteCond %{HTTP:Content-Type} multipart/form-data
> #RewriteCond %{REQUEST_URI} your-regex
> RewriteCond %{REQUEST_METHOD} POST
> RewriteRule ^/(.*) http://127.0.0.1:4000/$1 [P]
>
> With the commented out line, this will let merb handle all multipart
> post requests. You can un-comment the 3rd line and add your own
> expression to further limit what is handed to Merb.
>
> Cheers,
> -pete
> _______________________________________________
> Merb-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/merb-devel
>
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel