2 comments

[ 2.1 ms ] story [ 14.2 ms ] thread
For god's sake please do it in nginx or apache assuming you have one of those in front of rack.
Right, you can achieve this easily in nginx/apache. The whole idea of the rack-rewrite gem (and this post) is to move those rewrite rules into your app's code repository. This way your app can be moved between web servers without having to rewrite those rules.