Custom NGINX Directives in cPanel via CloudNS (Custom nginx.conf / configuration)

269ac00f765508cb74b25d006dbf5bb2

Written by Dennis Nind

Last published at: February 8th, 2019

Using our CloudNS nginx module, it is possible to apply your own custom 'nginx directives' (which are the nginx equivalents to .htaccess rules for Apache) 

To enable a custom nginx configuration, please create / upload a file named 'nginx.conf' in the public_html directory of your account 

example: /home/user/public_html/nginx.conf 

Within this file, you would enter the configuration / directives that would normally reside within the 'server{}' tags of a standard nginx configuration file. 

Once this has been done, you can activate the configuration for your domain using the CloudNS plugin in cPanel... 

cPanel -> CloudNS -> Server Settings -> user_config (set to 'enabled')