"Redirect" HTTP to HTTPS

Owncloud is https only but the redirect should work fine, I’m trying to reproduce it.