redirecting uploads to merb

written by justin on May 21st, 2008 @ 10:55 AM

I have a rails app for which I am using merb to handle the file uploading duties. I am using nginx as the webserver to proxy to the rails app. So here is the little bit of config from the nginx.conf that grabs the url that matches and sends it off to merb. This bit of code is in the location block.


if ($uri = /upload/acceptor) {
        proxy_pass http://applicationserver:4010;
        break;
   }


Comments

  • Amber on 06 Jun 15:20

    Tell Meeka to start a family blog! Their so fun and it's a nice way to keep in touch.

Post a comment