Made to work via both http and https.