Welcome! Log In Create A New Profile

Advanced

Url rewrite for restful url

Edward Stembler
August 08, 2012 02:32PM
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
SubjectAuthorPosted

Url rewrite for restful url

Edward StemblerAugust 08, 2012 02:32PM

Re: Url rewrite for restful url

Francis DalyAugust 08, 2012 08:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 150 on May 22, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready