I’ve been trying to figure out what’s going on for a few days now, no luck.
Whenever I browse to the external_url, a subdomain, I always see the contents of my main domain public_html folder.
I’ve disabled NGINX, followed the instructions on this page (gitlab docs - using a non bundled web server). You can see my setup and file contents below.
System setup
- CentOS 6.6
- Webmin & Virtualmin
- GitLab CE Omnibus 8.10
Contents of gitlab.rb
external_url 'http://lab.domain.ltd' nginx['enable'] = false web_server['external_users'] = ['apache'] unicorn['port'] = 8089 gitlab_workhorse['enable'] = true gitlab_workhorse['listen_network'] = "tcp" gitlab_workhorse['listen_addr'] = "127.0.0.1:4554"
VirtualHost
<VirtualHost *:80> ServerName lab.domain.ltd ServerSignature Off ProxyPreserveHost On AllowEncodedSlashes NoDecode <Location /> Require all granted ProxyPassReverse http://127.0.0.1:4554 ProxyPassReverse http://lab.domain.ltd/ </Location> RewriteEngine on RewriteCond %{REQUEST_URI} ^/api/v3/.* RewriteRule .* http://127.0.0.1:4554%{REQUEST_URI} [P,QSA,NE] RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_URI} ^/uploads/.* RewriteRule .* http://127.0.0.1:4554%{REQUEST_URI} [P,QSA] DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public ErrorDocument 404 /404.html ErrorDocument 422 /422.html ErrorDocument 500 /500.html ErrorDocument 503 /deploy.html LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common_forwarded ErrorLog /var/log/virtualmin/lab.domain.ltd_error_log CustomLog /var/log/virtualmin/lab.domain.ltd_forwarded.log common_forwarded CustomLog /var/log/virtualmin/lab.domain.ltd_access_log combined env=!dontlog CustomLog /var/log/virtualmin/lab.domain.ltd.log combined </VirtualHost>
Obviously using the actual domain.ltd in the real files.
Any help is welcome, thanks!