title: Nginx change document root directory
body: <p>I'm using the Windows setup file from <a href="http://kevinworthington.com/nginx-for-windows/" rel="nofollow">Nginx For Windows</a></p>
  
  <p>But It doesn't allow to change the install location, so it defaults to <code>C:\nginx</code> Is there a way to update the config file to change the root directory to <code>D:\blabla</code>?</p>
  
  <p>Sample code from <code>nginx.conf</code></p>
  
  <pre><code>server {
      listen       80;
      server_name  localhost;
  
      location / {
          root   html;
          index  index.html index.htm;
      }
  
      #error_page  404              /404.html;
  
      error_page   500 502 503 504  /50x.html;
      location = /50x.html {
          root   html;
      }
  }
  </code></pre>