Search results for:
Table of Contents
WHM provides you with full control over the Apache/HTTPd webserver service. To manage Apache's configuration, navigate to Service Configuration -> Apache Configuration in the WHM sidebar, and then all configuration options are divided into several sections. Each of these sections, and the options available within them, are detailed below.
This section gives you many options for configuring httpd—conf's main context.
Any changes made to the Apache Global Configuration do not take effect until the main Apache configuration file is rebuilt.
This section lets you specify what filenames will serve as index pages and the priority between them when more than one matching filename exists.
Add a new indexing filename, click the Add button, enter your new indexing filename (including the file extension) into the popup textbox, and click OK. The new indexing filename will be added to the bottom of the priority list.
To remove an existing indexing filename, select the indexing filename you want to remove in the priority list, click the Remove button, and then click OK on the confirmation popup.
To change the priority of which indexing filename gets chosen over another when both exist, select the filename you want to adjust the priority of in the list of Indexing filenames and select either Move Up or Move Down. The higher on the list, the higher the indexing priority for that filename will be.
To allow additional configurations beyond what is available in the base configuration, the cPanel Apache configuration system uses Include directives to provide hooks to allow these configurations. These files allow additional functionality as they are included with the normal Apache configuration. These can also be used to override or disable default configuration directives.
The included editor allows you to specify directives to be injected to specific points in the Apache configuration file (httpd. conf):
You can specify if your directives should apply to a specific Apache version or all versions for each of these sections. Select the version number, or All Versions, from the drop-down menu.
Making a selection in that drop down will make a textbox appear that will allow you to enter your Apache directives. Enter your directives in this textbox and select Update.
By default, Apache responds to requests on all available IP addresses but can be configured to respond only on specific addresses. The Reserved IPs Editor lets you specify address restrictions.
This page will list all IPs currently assigned and set up in the system. You can check the Reserved IP next to the IP address, click Save, and then click Rebuild Configuration and Restart Apache to specify an IP address as an IP reserved for Apache to respond on.
This module calculates and lets you set Apache memory limits.
This page lets you enable or disable the RLimitMEM limiter. When enabled, you can specify a memory limit in MB. To apply the settings, click Save with the Restart Apache? Checkbox checked.
This section lets you manage what Apache log files are rotated for archiving based on their size. On this page, you can click the checkbox next to each log file to include them in the rotation, then click Save. These files are rotated based on their size when they reach either the default of 300MB or the size specified in the Log Rotation Size Threshold setting and are then archived to /etc/apache2/logs/archive/.
This section lets you configure Apache to use a single log file target for all virtual host access and bandwidth logs. Combined logs are piped to another application where they can be split domain by domain. This helps reduce the number of log files Apache has to manage, freeing system resources. To enable Piped Apache Logs, check the Enable Piped Apache Logs checkbox and click Save.
Written by Hostwinds Team / December 7, 2018