开发者

Make nginx with ruby on rails have case insensitive URLs

We are using nginx + passenger and Ruby on Rails. We would like all URLs, not just controllers and actions to be cases insensitive. This works fine by default on the Mac I'm developing on but when we moved to linux with its case sensitive file system, we have a bunch of broken images. I'd also just like URLs in general to be case insensitve for people tr开发者_开发技巧ying to remember them.

I tried this: http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/

but could only get it working for Rails actions, not static images and such.

thanks for any help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜