Add hostname to SSL redirection

Change-Id: I65e6d5d1f2539a34ea9b0fa13f80de701a6b47cb
Fixes: rhbz#1078130
(cherry picked from commit 788998a8557bac415e270503c394b99e81943509)
Merge "Add hostname to SSL redirection" into havana