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
Subject Author Posted

Url rewrite for restful url

Edward Stembler August 08, 2012 02:32PM

Re: Url rewrite for restful url

Francis Daly August 08, 2012 08:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready