[WIP] - Fixing NGINX tests

New attempt to complete NGINX support. Please consider this is a WIP. I'm aware I've to fix doc e probably some CS
what about calling this buildPurgeUrl? i think that question of mine disapeared when you squashed... would it make sense?