location ^~ /uploads/ { alias /rails/uploads/production/; } Ok I fixed it by adding ^~ , it was a bit further down in the docs. It's much cleaner than using regexps. -- Posted via http://www.ruby-forum.com/.