read the http port of the webapp from config.securePort instead of config.port