Cpnginx File Structure
Cpnginx configurations and log files
Cpnginx will install nginx in the folder /usr/local/nginx/ . All nginx configuration files are located in /usr/local/nginx/conf/ directory. Please see the files and directory information below.
Nginx configurations and logs
Description | |
/usr/local/nginx/conf/ | Contains the configuration files |
/usr/local/nginx/conf/nginx.conf |
Nginx global configuration file |
/usr/local/nginx/conf/conf.d/ | Configuration files included on the nginx global scope |
/usr/local/nginx/conf/vhost.d/ | Virtual host configurations of domains and sub-domains |
/usr/local/nginx/conf/vhost.ssl.d/ | SSL virtual host configurations of the domain and sub-domains |
/usr/local/nginx/conf/ssl.cert.d/ | SSL certificate locations of your domain and sub-domains |
/usr/local/nginx/conf/ssl.key.d/ | SSL key files link to your domains and sub-domains |
/usr/local/nginx/conf/ssl.ca.d/ | CA-Bundle files of your domain and sub-domains. |
/var/log/cpnginx.error.log | Cpnginx error log |
/var/log/cpnginx.access.log |
Cpnginx access log |
Cpnginx File Structure
Cpnginx contains some files in /etc/cpnginx and /usr/local/cpanel/scripts. All these files are located under the respective theme folders. Please see the detailed file information below,
Item | Description |
/etc/cpnginx/ | The cpnginx configuration location directory |
/etc/cpnginx/version | Shows the version of cpnginx on your server |
/etc/cpnginx/data/ | Contains all json data files required for cpnginx WHM, and cPanel |
/etc/cpnginx/build/ | Contains the nginx auto-configure scripts provided by cpnginx |
/etc/cpnginx/build/custom/ | Contains your custom nginx auto-configure scripts for building nginx |
/etc/cpnginx/build/templates/ | Contains nginx server configuration global templates, startup scripts etc. |
/etc/cpnginx/domains/ | This is where WHM saves each domain's custom vhost settings as json files |
/etc/cpnginx/templates/ | The virtual host and app templates folder |
/etc/cpnginx/templates/vhost/ | Contains the cpnginx provided vhost templates, hybrid, prox,y, and nginx |
/etc/cpnginx/templates/apps/ | Contains the Apps Vhost templates like WordPress, Joomla, etc. |
/etc/cpnginx/templates/fpm/ | Contains the use php-fpm template |
/etc/cpnginx/templates/mods/ | Contains nginx modules template files |
/etc/cpnginx/templates/custom/ | This is where you create and place your custom vhost or app template files. |
/usr/local/cpanel/scripts/cpnginx/ | Contains all Python modules for the nginxctl command utility |
/usr/local/cpanel/scripts/cpnginx/hooks/ |
All hooks files required for your cPanel server |