When i use the 8080 port, it will be automatically redirected to https.
curl -I git.example.com:8080
command output like this:
HTTP/1.1 302 Found
Server: nginx
Date: Mon, 26 Jan 2015 15:36:30 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 302 Found
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Location: https://git.example.com:8080/users/sign_in
Cache-Control: no-cache
Set-Cookie: _gitlab_session=259854c0ef71e60458ef49d0d5d264f3; path=/; expires=Mon, 02 Feb 2015 15:36:30 -0000; HttpOnly
Set-Cookie: request_method=HEAD; path=/
X-Request-Id: 951a3144-f9cc-4c7e-9ffe-94ca41fce649
X-Runtime: 0.435359
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
output like this:
GitLab information
Version: 7.7.1
Revision: 41ab9e1
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://git.example.com:8080
HTTP Clone URL: http://git.example.com:8080/some-project.git
SSH Clone URL: ssh://git@git.example.com:8022/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab port i had changed to other port.