SSL problem with SSL proxy

There is a site setting called

  force https

Enable it.