Skip to main content

Cpnginx WHM UI

Managing Cpnginx from WHM

This is the server administrator interface for managing the entire web server. To access the WHM interface, log in to the WHM as the root user and go to Plugins → Cpnginx. All the options in the WHM interfaces are self-explanatory. Please see some of the details below.

Settings

This is the default settings page of the server. You can enable or disable as many of the features. If you change any values of the settings, make sure you follow the nginx syntax. If you don’t know how to change the values, it is better to use the default settings. The customization is limited only to your knowledge of nginx settings.

You can also individually configure these settings on per per-domain basis from the Domain → List domains → edit. However, the default disabled settings can’t be overridden by users.

Firewall

This is an important feature of the cpnginx. Here, it included a lot of nginx features like DDoS protection, symlink protection, SQL injection protection, etc. You can control it from the firewall.

You can also configure these settings individually on per per-domain basis from the Domain → List domains → edit. However, the default disabled settings can’t be overridden by users.

Domains

From this menu, you can access all of your domains, subdomains, addon domains, and parked domains. You can also see ssl and dedicated IP domains. It is possible to change each domain's vhost settings from this menu. You can change the web server mode, PHP version, etc. You can set proxy values and cache values, too.

Vhost Templates

This menu will help you manage your vhost or app templates. Please see the different meanings of vhost and app templates below,

  • Vhost templates: An nginx vhost template file without pointing to a specific web application running on websites. E.g.: hybrid.conf
  • App templates:  An app template is a vhost template aimed at a specific app that is running on a domain. For example, wordpress.conf is optimized and has a secure app template for WordPress websites. Your cPanel users can choose this template for their website.

To know more about how to write a template, please see the Templates documentation.

You can clone and edit a template from the WHM interface itself.

IMPORTANT: Using the wrong syntax in a custom template will make the server configurations improper, and that will result in nginx downtime. So test the template properly before uploading to a server.

Modules

This menu will control most of your module settings, like MP4, directory listing, etc. It is self-explanatory.

Nginx user Dir:

This functionality is the same as cPanel moduserdir. You can enable or disable these settings on per per-domain basis. Moduser dir is only available for the main domain of each cPanel account.

Directory Listing ( Auto index) :

This option will enable directory listing of files. By default, nginx won’t enable this option for security reasons. So you can enable or disable this as you wish.

This option is a security option. You can protect your clients' websites from hot links. So this will save abusive bandwidth usage from other servers.

Nginx Rewrite rules:

With this option, you can add any .htaccess nginx converted rules to any of your domains or sub-domains. So switching from Apache .htaccess to nginx rewrite rules will be easy. You can enable the rules for ssl and non-SSL domains from this menu.

Nginx Custom Include:

From this menu, you can add or remove custom include files and rules to any of your nginx domains or subdomains. This will extend the functionality of vhost customization.

Services

This menu is an NGINX service management interface for your cPanel server. If you know how to manage a Linux service from the shell, then you can do all these operations from the server terminal too.

Rebuild All vhost:

You can rebuild all of your vhosts from this menu.

Restart Nginx :

You can restart the nginx server from this menu.

Restart PHP-FPM:

You can restart all of your PHP-FPM services from this menu.

IP Deny

This menu is an NGINX service management interface for your cPanel server. If you know how to manage a Linux service from the shell, then you can do all these operations from the server terminal too.

Logs

This menu will help you to read the last 100 lines of each of the log files. It will help you troubleshoot your nginx server.

Domain Access Logs:

You can read domain access logs from this menu. You can read the last 100 lines of every domain's or subdomain's log file.

View SSL Domlogs:

This option will help you to read the domlogs of ssl vhosts. You can read the last 100 lines.

View nginx server logs:

You can read the error log and access log of the nginx server itself.

PHP-FPM Logs:

You can view all PHP FPM log files from this menu. You can read the last 100 lines of the log file.