Thanks, But I want to automatically remove the "/api" part, just as it does if I don't use variables. So that isn't possible? BR / Jonas Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248124,248128#msg-248128