title: New SubDomain Config for Nginx Throwing an Error: [crit] 29036#0
body: <p>I have (1) domain and two paths configured:
      mysite.com
      blog.mysite.com</p>
  
  <p>I'm trying to configure a <code>wordpress</code> blog on my existing <code>mysite.com</code> nginx server,</p>
  
  <p><strong>mysite.com</strong> has a <code>sites-enabled</code> config of:</p>
  
  <pre><code>server {
          listen       80;
          server_name     *.mysite.com;
          root /home/ubuntu/virtualenv/mysite/mysite/myapp/;
  
          access_log /home/ubuntu/virtualenv/mysite/error/access.log;
          error_log /home/ubuntu/virtualenv/mysite/error/error.log warn;
          connection_pool_size 2048;
  
          fastcgi_buffer_size 4K;
          fastcgi_buffers 64 4k;
  
          location /static {
              alias /home/ubuntu/virtualenv/mysite/mysite/myapp/static/;
          }
  
          location / {
              proxy_pass http://127.0.0.1:8001;
              proxy_set_header Host $host;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_read_timeout 10;
              proxy_connect_timeout 10;
              add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
          }
      }
  </code></pre>
  
  <p><strong>blog.mysite.com</strong> has a <code>sites-enabled</code> config of:</p>
  
  <pre><code>server {
          listen       80;
          server_name     blog.mysite.com;
          root /home/ubuntu/virtualenv/blog;
          index index.php;
  
          #### errors
          access_log /home/ubuntu/virtualenv/blog/error/access.log;
          error_log /home/ubuntu/virtualenv/blog/error/error.log warn;
          error_page 404 /404.html;
          error_page 500 502 503 504 /50x.html;
  
          fastcgi_buffer_size 4K;
          fastcgi_buffers 64 4k;
  
          #### locations
  
          location / {
                  try_files $uri $uri/ /index.php?$args;
          }
  
          location ~ \.php$ {
                  try_files $uri =404;
                  include fastcgi_params;
                  fastcgi_pass unix:/var/run/php5-fpm.sock;
          }
  
      }
  </code></pre>
  
  <p>the <code>error.log</code> file in <code>blog.mysite.com</code> is showing an error of:</p>
  
  <pre><code>2014/01/02 02:50:05 [crit] 29036#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: xx.xxx.xx.xxx, server: blog.mysite.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "blog.mysite.com"
  </code></pre>
  
  <p>Anyone know why this isn't working? I tried some research, but can't seem to find the solution.</p>
  
  <p>Thank you!</p>