Oracle® Solaris 11.2 패키지 저장소 복사 및 만들기

인쇄 보기 종료

업데이트 날짜: 2014년 9월
 
 

로드 균형 조정된 단일 저장소 서버 및 로드 균형 조정되지 않은 단일 저장소 서버

이 예에는 로드 균형 조정된 저장소 서버 설정 및 로드 균형 조정되지 않은 저장소 서버 설정을 호스트하는 저장소 서버에 대해 httpd.conf 파일에 추가해야 하는 모든 지시어가 포함되어 있습니다.

이 예에서는 하나의 도메인 이름에서 두 개의 서로 다른 접두어가 세 개의 서로 다른 패키지 저장소에 연결되어 있습니다.

  • http://pkg.example.com/repo_oneinternal1.example.com:10000internal2.example.com:10000에 연결됩니다.

  • http://pkg.example.com/repo_twointernal1.example.com:20000에 연결됩니다.

AddOutputFilterByType DEFLATE text/html application/javascript text/css text/plain

AllowEncodedSlashes NoDecode

MaxKeepAliveRequests 10000

ProxyTimeout 30

ProxyRequests Off

<Proxy balancer://pkg-example-com-repo_one>
        # depot on internal1
        BalancerMember http://internal1.example.com:10000 retry=5 max=100

        # depot on internal2
        BalancerMember http://internal2.example.com:10000 retry=5 max=100
</Proxy>

Redirect /repo_one http://pkg.example.com/repo_one/
ProxyPass /repo_one/ balancer://pkg-example-com-repo_one/ nocanon
Redirect /repo_two http://pkg.example.com/repo_two/
ProxyPass /repo_two/ http://internal.example.com:20000/ nocanon max=200