Issue #2373923 by griz - https redirect problem with Nginx (fix tested)