devo devo - 4 months ago 49
Apache Configuration Question

Uploaded avatar image not getting displayed in GitLab

On my gitlab config

, I have only the following code un-commented.

external_url ''
unicorn['worker_timeout'] = 6000
unicorn['port'] = 8888
web_server['external_users'] = ['www-data']
nginx['enable'] = false
ci_nginx['enable'] = false

Again reconfigured by running,

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

And configured virtual host for apache on

<VirtualHost *:80>
DocumentRoot /opt/gitlab/

ProxyPass /
ProxyPassReverse /

# Custom log file locations
ErrorLog /opt/bitnami/apache2/logs/gitlab_error.log
CustomLog /opt/bitnami/apache2/logs/gitlab_access.log combined

When I updated profile avatar, the file is getting uploaded on

But the image is not getting displayed in web interface and the image location attached to interface is

I can directly access the avatar on

How can I mode_rewrite all the requests on port 8888 to not have the port number? Or any other solutions to fix this?


As mentioned in "Gitlab and Apache - Uploaded images 404 errors", you don't need to specify the port in external_url.

In your case, that would be:

external_url ''

Then the url displayed would consistently be, not