Running the depot server behind an Apache web server instance provides the following benefits:
Allows hosting multiple repositories under one domain name. The pkg(5) depot server enables you to easily provide access to a repository in the local network or on the Internet. However, the depot server does not support serving multiple repositories under one domain name or sophisticated prefixes. To host multiple repositories under one domain name, run the depot server behind a web proxy.
Improves performance and availability. Running the depot server behind a web proxy can improve the performance and availability of the server by enabling load balancing over multiple depots and enabling content caching.
Enables providing a secure repository server. Run the depot server behind a Secure Sockets Layer (SSL) protocol enabled Apache instance that supports client certificates.