Added ability to enable http auth when using Apache as the proxy