Difference: InsideVHost (11 vs. 12)

Revision 1226 Apr 2010 - Main.MelanieSeibert

Line: 1 to 1
 
META TOPICPARENT name="EasyApache3.CustomDirectives"

Changes Contained within a VirtualHost Directive

Line: 122 to 122
 

Custom Templates for New Accounts

Changed:
<
<
When a new account, subdomain, or addon domain is created, the templates located in /var/cpanel/templates/ are not used. However, you are still able to define a template for these events. To do so, you will need to edit the files located at:
>
>
When a new account, subdomain, or addon domain is created, the templates located in /var/cpanel/templates/ are not used. Instead, the system uses the following files:
 
  • Apache 1 without SSL/usr/local/cpanel/etc/httptemplates/apache1/default
  • Apache 1 with SSL/usr/local/cpanel/etc/httptemplates/apache1/ssldefault
Line: 131 to 131
 
  • Apache 2.2 without SSL/usr/local/cpanel/etc/httptemplates/apache2_2/default
  • Apache 2.2 with SSL/usr/local/cpanel/etc/httptemplates/apache2_2/ssldefault
Changed:
<
<
ALERT! Warning: The system will not look for a custom template (.local file) within these directories. To create a custom template, you may rewrite the contents of a file, using the same filename. However, each of these files will be overwritten any time you update cPanel (run /scripts/upcp). To maintain custom templates for new accounts, you will need to create a postupcp script. This script will automatically run after every cPanel update, replacing the contents of the file with your custom template. For more information on creating a postupcp script, you can visit our documentation here.
>
>
ALERT! Warning: To create a custom template, you may rewrite the contents of a file, using the same filename. (The system will not look for a custom template [=.local= file] within these directories.) However, each of these files will be overwritten any time you update cPanel (run /scripts/upcp).

To maintain custom templates for new accounts:

  1. Create your custom version of the above file(s).
  2. Store these file(s) in a safe directory, where they will not be overwritten.
  3. Create a postupcp script that replaces the default file(s) above with your custom version(s). A postupcp script will automatically run after every cPanel update.
 

Custom Templates for Subdomains and Addon Domains