Knowledgebase
Include Editor Print this Article
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.
Was this answer helpful?
Related Articles
Apache Configuration
This collection of features allows you to configure Apache. Apache functions as your web server...
This collection of features allows you to configure Apache. Apache functions as your web server...
cPanel Log Rotation Configuration
Overview: This interface allows you to select cPanel & WHM log files for the cpanellogd...
Overview: This interface allows you to select cPanel & WHM log files for the cpanellogd...
cPanel Web Disk Configuration
Overview: The system uses cipher suites to negotiate security settings for Web Disk network...
Overview: The system uses cipher suites to negotiate security settings for Web Disk network...
cPanel Web Services Configuration
Overview: The system uses cipher suites to negotiate security settings for network connections...
Overview: The system uses cipher suites to negotiate security settings for network connections...
DirectoryIndex Priority
Overview: Visitors see the index page by default when they access a directory (for example,...
Overview: Visitors see the index page by default when they access a directory (for example,...