Compile by port for https and http support at the same time