Yeah, was just following the advice here: http://wiki.nginx.org/Pitfalls#Taxing_Rewrites with regards to rewrites.