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
Vhost Templates
- 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
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.
Hot Link Protection:
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:
Services
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
Logs
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.