auto configure ndex rest server URI if not served from localhost