Hi all, I've managed to solve this, with nginx_substitutions_filter module (http://wiki.nginx.org/HttpSubsModule) It's very easily done. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248258,248399#msg-248399