Correctly pass HTTPS = on to PHP only when SSL is used.

Close #15.
Nginx version: 1.2.7.

Closes #14.