fix redirect to non-standard-ssl port and also implement it for lighttpd

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>