Fixed issue: SSL mode forced to off leading to redirect loop on some webservers