put http server into the common file