Domain Specific Nginx Includes
Nginx Custom Domains Includes
You can add custom includes for per domain or sub-domain base. See an example for the domain foo.com as follows,
- For HTTP domain: create a file /usr/local/nginx/conf/vhost.d/foo.com.include
- For HTTPS domain: create a file /usr/local/nginx/conf/vhost.ssl.d/foo.com.include
After that, rebuild the vhost configuration using nginxctl as follows
nginxctl rebuildvhost foo.com
This option is only available for server administrations. Cpnginx will add a WHM interface to add or edit custom nginx rewrite rules.