nginx: correctly mangle Location URL for RWS.

Closes #228.