In this case, it will be better to get the hostname from the request.