Include Editor

Valid for versions 82 through the latest version

Version:

82

Last modified: June 13, 2024


Looking for this interface?
Note:

Your hosting provider can enable or disable this interface for resellers in WHM's Edit Reseller Nameservers and Privileges interface (WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges).

Overview

This interface 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 to existing configuration files, the system introduces new functionality.

Warning:
Any changes that you make to the httpd.conf file can affect the default Apache configurations globally or between virtual hosts.

Edit the Apache configuration file

To add content to your Apache configuration file, perform the following steps:

  1. Select one of the following options:
    • Pre Main Include — Inserts your content at the beginning of the httpd.conf file before the main configuration section. Use this option if you do not wish to overwrite any part of the httpd.conf file.
    • Pre VirtualHost Include — Inserts your content in the httpd.conf file before the first VirtualHost entry. Use this option to modify only a part of the httpd.conf file before the system configures virtual hosts.
    • Post VirtualHost Include — Inserts your content in the httpd.conf file after the last VirtualHost entry. Use this option to permanently modify a piece of the httpd.conf 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 only to your current version.
    • Select the appropriate version number for the system to overwrite your Include content when Apache updates.
      Note:
      Use this option if you are unsure whether a future version of Apache will support your Include content.
    • Select All Versions — Your Include content will apply to all of the future versions of Apache.
  3. After you select a version, a text box will appear. Enter your Include content in the available text box and click Update.
    • If you specify a directory in your Include content, the systems scan the directory. If the scan finds any configuration files, the system includes that directory in the affected files. For example, if you enter Include /etc/example.conf or Include /etc/example/ in the text box, the system includes those specific files in the directory.
  4. Click Update.

Additional Documentation