Automatically redirect all http requests to https

I installed gitlab 7.94 at local server. I keep all the configurations as default, however it always redirect http requests to https if somebody accesses it with ( for example, but it is ok if accessed with (, what’s the problem? how can I fix it?