2016-09-21 9 views
0

Debian 8とApacheを実行しているVPSにISPConfig 3で管理されているWebサイトがあります。 ウェブサイトはdomain.eeからアクセスできますが、git.domain.eeでGitLabを実行したい(同じ時に)GitLabとISPConfig 3の問題

しかし、GitLabをインストールして実行したときに、彼はISPConfigを却下し、 git.domain.eeとdomain.ee(および他のすべては私のVPSを指している住所が)

ここでは私のgitlab.rbの設定です:

external_url 'http://git.domain.ee' 
unicorn['port'] = 8080 
web_server['external_users'] = ['www-data'] 

そしてここでは、Apacheによってrunned私gitlab.confです。

<VirtualHost *:80> 
    ServerName git.domain.ee 
    ServerSignature Off 
    ProxyPreserveHost On 

    <Location /> 
     Order deny,allow 
     Allow from all 

     ProxyPassReverse http://127.0.0.1:8080 
     ProxyPassReverse http://git.domain.ee/ 
    </Location> 

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

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

</VirtualHost> 

明らかにdomain.eeは私の実際のドメイン名に置き換えられます。

答えて

0

ローカルホスト上のlet gitの実行:8080などのようなリバースプロキシとして をApacheを設定:

<VirtualHost *:80> 
    ProxyPreserveHost On 
    ProxyRequests Off 
    ProxyVia Off 

    <Proxy *> 
    Require all granted 
    </Proxy> 

    ProxyPass/http://127.0.0.1:8080 
    ProxyPassReverse/http://127.0.0.1:8080 
</VirtualHost> 

あなたがそれら

を必要としてあなたが他のルールを追加することができます