Copying and Creating Package Repositories in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014

One Load-Balanced and One Non-Load-Balanced Repository Server

This example includes all of the directives you need to add to the httpd.conf file for a repository server that hosts a load-balanced and a non-load-balanced depot server setup.

In this example, two different prefixes of one domain name are connected to three different package repositories:

  • is connected to and

  • is connected to

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 retry=5 max=100

        # depot on internal2
        BalancerMember retry=5 max=100

Redirect /repo_one
ProxyPass /repo_one/ balancer://pkg-example-com-repo_one/ nocanon
Redirect /repo_two
ProxyPass /repo_two/ nocanon max=200