refine the server url