Skip to main content

User Manual

Manage Cpnginx from the user control panel

The user manual is for the cPanel end user. This document refers to the different functionality provided in the cPanel interface. All these features can be managed from the administrator interface.

Domains

This menu will help you handle all of your domains. You can view all of your domains, subdomains, addon domains, parked domains, etc.

From the “List Domains” menu, you can edit each of the domains' settings, if it is enabled by the administrator.

Redirection

This menu can be used to manage two types of redirections, ie, https redirections and www redirections.

  • HTTPS Redirection: You can force your website access to HTTPS using these menu options. You need to make sure SSL is installed and configured on the respective websites. Redirecting websites to HTTPS will increase the Google search facility.
  • WWW Redirections: With this option, you can force www to non-www or non-www to www redirection. It is better to serve the content from one domain, which will help to increase SEO.

Directory Listing

Nginx, by default, won’t allow directory listing for files. You can enable or disable directory listing of individual domains.

This option will help you to protect your static files from being stolen by other domains. This is good for content security.

Web Server

This menu will help you to view and switch the web server modes. Cpnginx provides three types of web server modes: proxy, hybrid, and nginx.

  • Proxy - In this mode, nginx works as a front-end proxy. All your files served from Apache .htaccess rules work fine.
  • Hybrid – In this mode, nginx serves all your static files and Apache serves the dynamic files. Most of the .htaccess rules work fine.
  • nginx – This is nginx stand standalone mode. All files work from nginx. In this mode, multiple PHP-FPM instances also work. .htaccess rules won’t work. But if you can convert your .htaccess rules to nginx rewrite rules ( which is easy ), then the server administrator can easily add the rules to the website's vhost settings.

List nginx Sites

This menu will show you all your websites' nginx template or app template settings. You can choose any of the three web server modes, unless you override it with an app template.

Switch Web Server

This menu will help you switch your website's nginx modes to proxy, hybrid, or nginx.

PHP

This is the PHP configuration menu. It is one of the main features of cpnginx. Cpnginx is the only software that will allow you to configure multiple PHP versions based on per per-domain or subdomain basis. All other multi-PHP modules only allow you to choose a default PHP for your entire domain. In cpnginx, multiple PHPs only work in “nginx” mode. It also works for the apptemplates based on the nginx template.

Switch Website PHP version

This menu will help you choose the website's PHP versions.

App Templates

Cpnginx provides a lot of app templates like WordPress, Joomla, Drupal, etc. These templates are specifically designed for the respective applications. If you are running any of these applications, then it is recommended to choose these application templates for better performance. These templates assume your application is configured on the document root of each domain or subdomain. If you have it in a subfolder, you need to consult with the server administrator to provide a custom template for your websites.

Firewall

This menu will help you configure the nginx firewall for your websites. Every option in this menu is controlled by the server administrator. You can enable or disable, if it is enabled by your server administrator.

Domain Firewall Settings

This menu will list all of your domains' firewall settings. You can edit or change it as you wish unless it is disabled by the server administrator.

Change Firewall Settings

From this menu, you can change the firewall settings of individual domains.

Cache Management

You can turbo-boost the website loading speed with Cache. Cpnginx supports two types of cache: proxy cache and fcgi cache.

  • Proxy Cache: Enabling proxy cache will speed up your websites that are running in proxy mode. But you need to handle the cache properly; some websites may not show recent updates due to the cache. But no worries, from the cPanel interface, you can disable or enable the proxy cache.
  • FCGI Cache: This is the php-fpm cache. Enabling this micro cache also speeds up the websites. But please configure it properly. You can enable or disable the fcgi cache for their website if it is enabled by the admin. This cache is for websites running in nginx mode.

Sometimes, enabling cache may have a delay in updating recent contents. So you can test the cache settings of every website before pushing it to production.