Seems ok from what I can see, although there's a number of other rules in the same file which may (or may not!) affect it. I assume the top one is called before the bottom? Also, are you using pure Nginx, i.e. not Apache proxy?
Maybe send me access via the ticketing system and I'll try to debug...