Include Editor

For WHM version 11.40

(Home >> Service Configuration >> Apache Configuration >> Include Editor)

Overview

The Include Editor feature allows you to add other configuration files to your Apache configuration file (httpd.conf) through Apache's Include directive. When you add other configuration files, you “teach” Apache how to handle new types of files. This can save time, since changes you make here will have the potential to affect the default Apache configurations globally or between virtual hosts.

Edit the Apache configuration file

To add content to your Apache configuration file:

  1. Choose one of the following options:
    • Pre Main Include — Insert your content at the beginning of the Apache configuration file (httpd.conf), before the main configuration section. Use this option if you do not want to overwrite any part of the httpd.conf configuration file.
    • Pre VirtualHost Include — Insert your content before the first VirtualHost entry that is listed in the Apache configuration file (httpd.conf). Use this option if you want to modify only a part of the httpd.conf configuration file, before virtual hosts are configured.
    • Post VirtualHost Include — Insert your content after the last VirtualHost entry that is listed in the Apache configuratioin file (httpd.conf). Use this option if you want to permanently modify a piece of the httpd.conf configuration file.
  2. Use the Select an Apache Version menu to select whether you wish to apply your Include content to all versions of Apache or just your current version.
    • Select 2.2.21 if you want your Include content to be overwritten when Apache updates.
      • note Note: This is useful if you are unsure whether a new version of Apache will support your Include content.
    • Select All Versions if you want your Include content to apply to all future versions of Apache.
  3. After you select a version, a field will appear. Enter your Include content in the available field.
    • If you specify a directory in your Include content, the directory will be scanned. If any configuration files are found, that directory will be included in the affected files. For example, if you enter Include /etc/example.conf or Include /etc/example/, those specific files will be included.
  4. Click Update.

Additional documentation

Topic revision: r8 - 18 Oct 2013 - 18:15:07 - Main.LaurenceSimon