Issue #2373923 by griz - https redirect problem with Nginx

Sync with Apache config required.