ISPCONFIG 3 and GITLAB

Discussion in 'HOWTO-Related Questions' started by Ahti, Aug 5, 2015.

  1. Ahti

    Ahti New Member

    Hello!

    I have my gitlab working locally, but somehow i cannot access it externally. Can't figure out the problem. I'm running Debian 8 system.

    Current conf files :
    /etc/gitlab/gitlab.rb
    Code:
    gitlab_url = "http://127.0.0.1:9999"
    external_url "http://gitlab.example.ee"
    
    gitlab_rails['gitlab_host'] = "gitlab.example.ee"
    gitlab_rails['gitlab_email_from'] = "[email protected]"
    gitlab_rails['internal_api_url'] = "http://localhost:9999"
    
    web_server['external_users'] = ['www-data']
    
    unicorn['port'] = "9999"
    nginx['enable'] = false
    apache vhost (/etc/apache2/sites-available/gitlab.conf)
    Code:
    <VirtualHost *:9999>
        ServerAdmin [email protected]
        DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
        ServerName gitlab.example.ee
        ServerAlias gitlab.example.ee
    
        ProxyPreserveHost On
    
        <Location />
    
            Order deny,allow
            Allow from all
            Options FollowSymLinks
            Require all granted
    
            ProxyPassReverse http://localhost:9999/
            ProxyPassReverse http://gitlab.example.ee/
        </Location>
    
        RewriteEngine on
        RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
        RewriteRule .* http://localhost:9999%{REQUEST_URI} [P,QSA]
    
        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  /${APACHE_LOG_DIR}/gitlab.error.log
        CustomLog /${APACHE_LOG_DIR}/gitlab.forwarded.log common_forwarded
        CustomLog /${APACHE_LOG_DIR}/gitlab.access.log combined env=!dontlog
        CustomLog /${APACHE_LOG_DIR}/gitlab.log combined
    </VirtualHost>
     
    Last edited: Aug 5, 2015
    toàn likes this.

Share This Page