title: Video file (.mp4|.mkv) unable to load from outside server rootDIr
body: <p>Lets get straight to the point.</p>
  <p>I am putting my old VHS/DVD contents on my hardDrive. Which is located in <code>/mnt/d/Movies</code>, i am using windows and have WSL (windows subsystem linux). The WSL is where the webserver is hosted from as i would like to serve all this movies via my LAN to anyone wanting to watch them (LAN ONLY). Made a dynamic page to select the movie and load it.</p>
  <p><code>movieDir Location: /mnt/d/Movies/Speed.2.Cruise.Control-1997/Speed.2.Cruise.Control-1997.mkv</code></p>
  <p>When i try the following</p>
  <p><code>$lanSite-&gt;movieDir = 'https://localhost/mnt/d/Movies/'</code> &lt;--- 100% certain that its trying to read  a folder that does not exists within the &quot;localhost&quot;</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;video&gt;
    &lt;source  style="height:600px; width:480px;" src="&lt;?= $lanSite-&gt;movieDir . DIRECTORY_SEPARATOR . $movieName . "-" . $movieYear . $movieFile; ?&gt;" type="video/mp4"&gt;
  &lt;/video&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>NOTE: video files are being encoded into either mkv / mp4 depending on which one comes out the best for storing purposes.</p>
  <p>URL USED: <code>/mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv</code>
  Tried the above which does not seem to load anything. When i try to check if the Dir and File exists they appear to exist but not load within the localhost page.</p>
  <p>then i tried using apache .htaccess to redirect the /mnt/d/Movies folder
  .htaccess: <code>RewriteRule ^movie-file/(.*)$ movie_details.php?movie=$1</code></p>
  <p>The above did not work, actually i think i ended up at the same place with a different approach.</p>
  <p>I then realized that its outside of the rootDir, done some googling. The end result was me resetting my WSL due to a dir mixup.</p>
  <p>Anyone perhaps know what could be the issue, if i load a file within the server no problem, although the server has 512GB storage and the movies i have encoded so far are at 650GB, externally using them from the drive itself is my only option.</p>
  <p>Random Combos i tried:</p>
  <pre><code>https://localhost/mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
  ../../mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
  //mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
  D:\Movies\Speed 2 Cruise Control-1997\Speed.2.Cruise.Control-1997.mkv
  file:///D:\Movies\Speed 2 Cruise Control-1997\Speed.2.Cruise.Control-1997.mkv
  </code></pre>
  <p>All combinations i have tried, failed epically.
  Yes, i have tried .mp4 and it comes with the same result --&gt; folder Found --&gt; file Found --&gt; unable to see player or play</p>