I have a Rails web app which has static files under dynamic restful
urls. For example:
/projects/1/attachments/some_file.xls
I want to setup Nginx to redirect to the static file on the server:
/public/attachments/1/some_file.xls
Where 1 is the dynamic project id.
How would the location block and rewrite statement look for the Nginx
config file?
StackOverflow link:
http://stackoverflow.com/questions/11852854/nginx-url-rewrite-for-restful-url
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx