Gitlab called from a wrong url


I’ve installed Gitlab recently and it is working very well. The point is that Gitlab is called from two urls. The first is the external url : and the second is

I do not know how it happened. I have two diffrent configuration.

Here’s the first Gitlab VH:

<VirtualHost *:80>
ServerSignature Off

ProxyPreserveHost On

AllowEncodedSlashes NoDecode

<Location />
Require all granted
ProxyPassReverse http://x.x.x.1:8181

 RewriteEngine on

 RewriteCond %{REQUEST_URI} ^/uploads/.*
 RewriteRule .*{REQUEST_URI} [P,QSA,NE]

 DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public

 ErrorDocument 404 /404.html
 ErrorDocument 422 /422.html
 ErrorDocument 500 /500.html
 ErrorDocument 502 /502.html
 ErrorDocument 503 /503.html

 LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common_forwarded
 ErrorLog /var/log/httpd/logs/YOUR_SERVER_FQDN_error.log
 CustomLog /var/log/httpd/logs/YOUR_SERVER_FQDN_forwarded.log common_forwarded
 CustomLog /var/log/httpd/logs/YOUR_SERVER_FQDN_access.log combined env=!dontlog
 CustomLog /var/log/httpd/logs/YOUR_SERVER_FQDN.log combined

Any ideas please ?