Site-specific Customizations

Site-specific customizations affect the way services (such as Apache) are configured for a particular site on the Parallels Pro Control Panel server.

Each service that can be customized for a site has a file explaining its variables in the file,
/usr/share/doc/webppliance-<servicename>/custom.py.

To customize any service for a site, you must copy the file /usr/share/doc/webppliance-<servicename>/custom.py into /home/vitual/site<n>/info/custom/<servicename>.py, where <n> represents the unique site number.

For example, to modify the behavior of the Apache service for a site, you must run the following command:

cp /usr/share/doc/webppliance-apache-3.5.0/custom.py /home/vitual/site12/info/custom/apache.py

Then, modify the file /home/vitual/site12/info/custom/apache.py, as required. The significance of each of the customizable variables is given in the custom.py file.

To apply site-specific customizations

  1. Copy /usr/share/doc/webppliance-<servicename>/custom.py as
    /home/virtual/site< n>/info/custom/<servicename>.py

    where:

    n in site<n> stands for the site-specific number and <servicename> refers to the name of the service you want to customize.

    For example, to customize the anonftp service, copy /usr/share/doc/webppliance-anonftp/custom.py as /home/virtual/site1/info/custom/anonftp.py.

  2. Modify the file <servicename>.py as per your requirements.
  3. Save the file.
  4. To restart Parallels Pro Control Panel, type the command
    /etc/rc.d/init.d/epld restart