Fix for error pages of http to https port