Issue with server name vs site alias

I have installed the omnibus package on a redhat server. I had an alias created after installation.
Host: servername
alias: gitlab.domain.local

I have found project avatars are using the servername in their path. This causes an issue in displaying the avatar due to the login occurring on the alias NOT the servername.

What is the best solution to using the alias in all paths used in my gitlab installation.

Hello,

Set the external URL to something that can be resolved by the client in /etc/gitlab/gitlab.rb. The external url will be used to build the urls to all routes, including the avatars.

Please review this doc for more information: http://docs.gitlab.com/omnibus/settings/configuration.html

this will be the external_url variable?

Yes please

Is syntax?:
external_url ‘gitlab.domain.local’

should I also add GITLAB_HOST?
GITLAB_HOST ‘gitlab.domain.local’

also do I need to run, after finishing edit:
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

I, obviously, am new to GitLab. I am working with my server admin and not permitted direct access to the server, this limits my ability to see existing configuration.
I really do appreciate your assistance.

Well I did add the external_url as discussed, but this did not solve my problem.
If I log into the server through the alias, project avatars will not display.
I get:
“http://server.domain.local/uploads/project/avatar/7/image.png”
where I need:
“http://alias.domain.local/uploads/project/avatar/7/image.png”
This appears to be due to the path to said avatars being by server name NOT alias.
Is there a setting somewhere that makes the image path relative?
instead of:
http://server.domain.local/uploads/project/avatar/7/image.png
Just:
“/uploads/project/avatar/7/image.png”

Yea ha!!!
I found my mistake.
here is the correct way to resolve this issue:
edit /etc/gitlab/gitlab.rb
external_url ‘http://gitlab.domain.local
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

all is good!