Improved https configuration