2016-09-21 2 views
0

데비안 8 및 Apache를 실행하는 VPS에서 ISPConfig 3으로 관리되는 웹 사이트가 있습니다. domain.ee를 통해 웹 사이트에 액세스 할 수 있지만 git.domain.ee에서 내 GitLab을 실행하고 싶습니다.GitLab 및 ISPConfig 3 호

그러나 GitLab을 설치하고 실행하면 ISPConfig를 뒤엎고 실행을 시작했습니다. 내 gitlab.conf 아파치에 의해 runned 여기에

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

그리고 : git.domain.ee 및 domain.ee 여기

내 gitlab.rb의 설정 (그리고 다른 모든 내 VPS를 가리키는 adresses) :

<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

하자의 자식 로컬 호스트에서 실행 : 8080 및과 같이 역방향 프록시 로 아파치를 구성합니다

<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> 
당신이 그 (것)들에게

을 필요로하는 당신은 다른 규칙을 추가 할 수 있습니다