Hello, I'm new to nginx and am a staff member on a site where we just moved to a VPS. We have some sysadmins, but they're busy and away for a little while and I was wondering, how do I create a subdomain with nginx? Like if I wanted to create sub.domain.com , I have the folder at /var/www/sub.domain.com and I have a file called "sub.domain.com.conf" in /etc/nginx/sites-enabled but I still can't seem to make the site load when I restart nginx for changes to take effect. What am I missing here?
Why don't you simply use cpnginx.com instead of what your trying to do if your using cPanel as your control panel.