Git Lab EE error on gcloud vm

2-3 hours of search did not help me.

No error with sudo gitlab-ctl reconfigure

sudo gitlab-ctl tail nginx gives me this error.

2019-08-17_23:27:49.17641 nginx: [warn] conflicting server name "www.gap.a1z.us" on 0.0.0.0:7000, ignored

My gitlab.rb:

external_url 'https://www.gap.a1z.us:7000'
letsencrypt['enable'] = false
nginx['redirect_http_to_https'] = true 
nginx['redirect_http_to_https_port'] = 7000
nginx['custom_gitlab_server_config'] = "location /.well-known/acme-challenge/ {\n root /usr/share/nginx/html; \n}\n"

appreciate any help…

Resolved

Simply by commenting the following two lines:

nginx['redirect_http_to_https'] = true 
nginx['redirect_http_to_https_port'] = 7000