gitlab 과 apache 연동
2013. 7. 14. 17:12ㆍOS/Linux
1. gitlab의 설정 변경
환경설정 파일을 연다.
vi /home/git/gitlab/config/puma.rb
bind 'tcp://127.0.0.1:9292' # 주석 풀어준다.
#bind "unix://#{application_path}/tmp/sockets/gitlab.socketn" # 주석을 해준다.
서비스 재시작
service gitlab restart
2. apache proxy 설정
proxy 관련 옵션을 켜준다.
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http
sudo a2enmod rewrite
환경 설정파일 작성
vi /etc/apache2/sites-available/gitlab
proxy로 등록해준다.
<VirtualHost *:80>
ServerName localhost
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:9292/
<Location />
ProxyPassReverse /
Order deny,allow
Allow from all
</Location>
# Custom log file locations
ErrorLog /var/log/apache2/gitlab_error.log
CustomLog /var/log/apache2/gitlab_access.log combined
</VirtualHost>
아파치 설정에 등록
a2ensite gitlab
아파치 재시작
service apache2 restart
'OS > Linux' 카테고리의 다른 글
Could not find libv8-3.11.8.17 in any of the sources (0) | 2013.09.18 |
---|---|
gitlab 기본 아이디와 비밀번호 (0) | 2013.07.16 |
gitlab 설치시 mysql 관련 오류 (0) | 2013.07.14 |
ubuntu 에서 apache2 와 nodejs (express) 를 reverse proxy로 연동하기 (0) | 2013.07.02 |
nodejs + npm + express 설치 (0) | 2013.07.02 |