title: Uploaded avatar image not getting displayed in GitLab
body: <p>On my gitlab config <code>/etc/gitlab/gitlab.rb</code>, I have only the following code un-commented.</p>
  
  <pre><code>external_url 'http://gitlab.mydomain.com:8888'
  unicorn['worker_timeout'] = 6000
  unicorn['port'] = 8888
  web_server['external_users'] = ['www-data']
  nginx['enable'] = false
  ci_nginx['enable'] = false
  </code></pre>
  
  <p>Again reconfigured by running,</p>
  
  <pre><code>sudo gitlab-ctl reconfigure
  sudo gitlab-ctl restart
  </code></pre>
  
  <p>And configured virtual host for apache on <code>/opt/bitnami/apache2/conf/bitnami/httpd.conf</code></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName gitlab.mydomain.com
  DocumentRoot /opt/gitlab/
  
  ProxyPass / http://127.0.0.1:8888/
  ProxyPassReverse / http://127.0.0.1:8888/
  
  # Custom log file locations
  ErrorLog /opt/bitnami/apache2/logs/gitlab_error.log
  CustomLog /opt/bitnami/apache2/logs/gitlab_access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>When I updated profile avatar, the file is getting uploaded on <code>/opt/gitlab/embedded/service/gitlab-rails/public/uploads/user/avatar/2/avatar.png</code></p>
  
  <p>But the image is not getting displayed in web interface and the image location attached to interface is <code>http://gitlab.mydomain.com:8888/uploads/user/avatar/2/avatar.png</code></p>
  
  <p>I can directly access the avatar on <code>http://gitlab.mydomain.com/uploads/user/avatar/2/avatar.png</code>. </p>
  
  <p>How can I mode_rewrite all the requests on port 8888 to not have the port number? Or any other solutions to fix this? </p>