Gitlab actions not using subdomain

Hi there!

I installed manually Gitlab into my server. Everything works fine, except one thing…

Currently Gitlab is using my company subdomain, http://subdomain.domain.dom, but form actions like save profile changes (for example) tries to POST to domain.com, instead to subdomain.domain.dom.

For example when I tried to do branch with at the project page, browser requests Referer:http://domain.com/user/project/tree/anotherbranch with request header referer: Referer:http://subdomain.domain.com/user/project/tree/master. This also happens with profile editing, etc… Any form action does the correct POST but returning an incorrect GET.

I have Gitlab configured on Apache 2.4, shell.yml points to

gitlab_url: “http://gitlab.jouzusolutions.com/

gitlab.yml

host: gitlab.jouzusolutions.com
port: 80

apache-server-gitlab.conf

*<VirtualHost *:80>*

  *ServerAlias subdomain.domain.dom*
  *ServerSignature Off*
  *ProxyPreserveHost On*
  *AllowEncodedSlashes NoDecode*

  *<Location />*
     *ProxyPassReverse http://127.0.0.1:8080*
     *ProxyPassReverse http://gitlab.jouzusolutions.com/*
  *</ Location>*

  *RewriteEngine on*
  *RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f*
  *RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]*

*</VirtualHost>*

Maybe I didn’t explain my problem enough… sorry about that and I will respond any doubt you have about my problem :wink:

Thank you!