Installation guide

38
Managing EZ Templates
Setting up a proxy server for managing EZ templates has the following advantages:
1 Your Internet bandwidth consumption is greatly reduced because all packages are downloaded
to the proxy server only once and can then be used by any Node on your network.
2 You can more rapidly apply software updates to Containers since the proxy server where the
downloaded packages are stored resides in the local network.
3 You can always have the software packages included in OS EZ templates at hand and do not
have to worry whether they have been changed in or removed from their original repositories.
The Parallels script running on the proxy sever does not remove any cached packages; so it is
up to you when to delete a specific package, if at all.
Setting Up a Proxy Server
To make a server act as a caching proxy server for EZ templates, you need to install the
vzpkgproxy package on this server. vzpkgproxy is located in the /virtuozzo/RPMS
directory of your Parallels Virtuozzo Containers distribution and can be installed with the rpm -i
command on servers (including Containers) meeting the following requirements:
The Apache httpd server, version 2.0.53 and higher, is installed on the server.
The createrepo package, version 0.4.2 and higher, is installed on the server.
Keep in mind that you may also need to install a number of additional packages to satisfy the
vzpkgproxy dependencies.
By default, the caching proxy server does not allow connections from external hosts. To allow
external connections, you need to edit the /etc/httpd/conf.d/vzproxy.conf file as
described below:
1 Locate the following section in the vzproxy.conf file.
<Proxy *>
Order deny,allow
Deny from all
# Enter all clients here
Allow from localhost.localdomain
</Proxy>
2 Replace localhost.localdomain with the hostnames of external servers you want to be
able to connect to the proxy server. For example, to allow connections from the
myserver1.com and myserver2.com servers, you can edit the section as follows:
<Proxy *>
Order deny,allow
Deny from all
# Enter all clients here
Allow from myserver1.com myserver2.com
</Proxy>
You can also remove the string Deny from all and change the string Allow from
localhost.localdomain to Allow from all to allow all external hosts to connect to the
proxy server.