Nginx map module 301 redirecting
- by Reinier Korth
I've rebuild my website in Ruby on Rails and now I want to 301 redirect a lot of old urls using Nginx's http://wiki.nginx.org/HttpMapModule
For some reason I can't get it to work. It works fine without the rewrite ^ $new permanent; line.
Does anyone see what I'm missing?
This my nginx.conf:
server {
server_name example.com;
return 301…