Add hostname to SSL redirection

Change-Id: I65e6d5d1f2539a34ea9b0fa13f80de701a6b47cb
Fixes: rhbz#1078130
Merge "Add hostname to SSL redirection"