ensure correct ports are used for http and https for both cms and lms