setup_server called only for https