title: Host CIFS files on NGINX under Windows
body: <p>I have NGINX running on a Windows box. I'd really like it to host files which are stored on a neighboring box using CIFS, but I can't figure out how to handle it in the config.</p>
  
  <pre><code>server {
      listen       80;
      server_name  localhost;
      sendfile off;
      #charset koi8-r;
  
      #access_log  logs/host.access.log  main;
  
      location / {
          root   html;
          index  index.html index.htm;
      }
  
      location /share {
          root //otherserver/share/files;
      }
  }
  </code></pre>
  
  <p>When I try pulling a file from that location I get this:</p>
  
  <pre><code>2015/05/05 10:28:37 [error] 6600#13064: *12 CreateFile() "C:\Users\me\Desktop\nginx/\\otherserver/share/files/sample.mp4" failed (3: The system cannot find the path specified), client: 127.0.0.1, server: localhost, request: "GET /share/sample.mp4 HTTP/1.1", host: "localhost"
  </code></pre>
  
  <p>Clearly NGINX is interpreting my command as a relative path. </p>
  
  <p><strong>Is there a way to use a CIFS/SMB UNC path in nginx.conf?</strong></p>
  
  <p><strong>If not, how can I host files stored on a CIFS share?</strong></p>
  
  <p>Many thanks!</p>