Enable HTTPS on Yii 1 and Nginx

Guys please take a look at this, this problem leaves me stuck for days now. Can you help me figure out where to look or if anyone has encountered the same problem?