Nginx setting up subdomain

Discussion in 'Nginx' started by JoeGazz84, Aug 28, 2011.

  1. #1
    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?
     
    JoeGazz84, Aug 28, 2011 IP
  2. rocknrollamp

    rocknrollamp Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why don't you simply use cpnginx.com instead of what your trying to do if your using cPanel as your control panel.
     
    rocknrollamp, Aug 29, 2011 IP