Include fastcgi https parameter in generated nginx configuration

Rebase of #1469 from `dev_4_4` onto `develop`.