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’)

Did this answer your question?