remove localhost from config, retrieving context path dynamically