title: Changing the default Gitlab port
body: <p>I have installed the latest Gitlab-CE (8.10) on CentOS 7 (fresh install) via the Omnibus package as described here: <a href="https://about.gitlab.com/downloads/#centos7" rel="noreferrer">https://about.gitlab.com/downloads/#centos7</a></p>
  
  <p>Now, I would like to change the default port at which one can access the Gitlab web interface. To this end, I followed the instructions at <a href="http://docs.gitlab.com/omnibus/settings/nginx.html#change-the-default-port-and-the-ssl-certificate-locations" rel="noreferrer">http://docs.gitlab.com/omnibus/settings/nginx.html#change-the-default-port-and-the-ssl-certificate-locations</a>, namely I included</p>
  
  <pre><code>external_url "http://127.0.0.1:8765"
  </code></pre>
  
  <p>in the configuration file <code>/etc/gitlab/gitlab.rb</code> and then updated the configuration with <code>gitlab-ctl reconfigure &amp;&amp; gitlab-ctl restart</code>.</p>
  
  <p>However, when I then navigate to <code>http://127.0.0.1:8765</code>, Gitlab keeps redirecting to <code>http://127.0.0.1/users/sign_in</code>, i.e., the port specification is somehow discarded. When I then manually change the URL in the browser to <code>http://127.0.0.1:8765/users/sign_in</code>, it correctly displays the login page and interestingly, all links on the page (e.g., "Explore", "Help") contain the port specification.</p>
  
  <p>In order to fix this behavior, is it necessary to specify the port also somewhere else than in <code>/etc/gitlab/gitlab.rb</code>?</p>