cPanel
Include Editor
Valid for versions 82 through the latest version
Version:
82
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:
- 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 thehttpd.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 thehttpd.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 thehttpd.conf
file.
- Pre Main Include — Inserts your content at the beginning of the
- 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.
- Select the appropriate version number for the system to overwrite your
- 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 enterInclude /etc/example.conf
orInclude /etc/example/
in the text box, the system includes those specific files in the directory.
- If you specify a directory in your
- Click Update.