Added support for legacy VOMS requests and port rewriting.