redirecting uploads to merb
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;
}
1 comment
Comments
-
Tell Meeka to start a family blog! Their so fun and it's a nice way to keep in touch.
Twitter