title: Nginx custom config file setting doesn't work when firing up the server
body: <p>I am trying to configure the Nginx, PHP on Windows 7 64Bit, such that both PHP &amp; Nginx should always use the path that I have specified to them during startup or in the config files.</p>
  
  <p>Now as for Nginx, I am starting it's server executable with the following VBScript for custom config file loading:</p>
  
  <pre><code>... Vbs code ...
  sh.run "cmd /K CD "&amp; NginxPath &amp;" &amp; start nginx", 0
  sh.run "cmd /K CD "&amp; NginxPath &amp;" &amp; start nginx -c "&amp; NginxConf, 0
  sh.run "cmd /K CD "&amp; NginxPath &amp;" &amp; start nginx -s reload", 0
  ... Vbs code ...
  </code></pre>
  
  <p>But it always throws the same error consistently:</p>
  
  <pre><code>2019/01/21 06:53:52 [emerg] 6988#5196: CreateFile() "Custom\Path\mime.types" failed (2: The system cannot find the file specified) in Custom\Path\nginx.conf:18
  </code></pre>
  
  <p>And even with this error the Server starts but loads the default config file, which shouldn't happen at all.</p>
  
  <p>BTW, the variables NginxPath &amp; NginxConf both have correct Windows Path with proper double-quoting(eg. "C:\path\file.conf")</p>
  
  <p>Even if we forget about VBscript, and simply fire below command in CMD, it gives same error:</p>
  
  <pre><code>nginx -c C:\custom\path\nginx.conf
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>nginx: [emerg] CreateFile() "C:\custom\path\mime.types" failed (2: The system cannot find the file specified) in C:\custom\path\nginx.conf:18
  </code></pre>
  
  <p>So why is this happening and how to resolve it with using custom conf file as I desire ?</p>