php proxy, move host config and auth to proxy