This is my first ever post and i'm new to coding so be easy on me. I've started making a website using xampp/Apache. The purpose of this site is to allow me and my family members to watch videos i have on my computer.
So i have all my videos on a external hard drive. That is where i have also installed xampp just to make it easier. The file path for xampp is D:\xampp. The file path for my html and php code is D:\xampp\htdocs\dashboard\movieTime. I've been trying to play a video from my movies file D:\Movies but it won't work.
Here's the code:
<video width="400" controls="controls">
<source src="../../../../Movies/holden.mp4" type="video/mp4">
</video>
As you can see in the code i go from the html/php code directory back to D:\ then into the Movies folder and it should open up holden.mp4 but it can't access it. I have tested to see that the code can open and play the video when the video is with the base directory. I also checked that the video can be played for each directory up to D:\ . The video can play when in the D:\ directory but the moment i try to go into the Movies folder it won't play.
I have added Alias and directory in the httpd.conf file (This is probably where i messed up but i tried many things before this and different variations).
I also checked the error logs and this is what it says.
Not sure what the errors mean. But could it mean I have to add D:\ directory somewhere?
But basically i can't access my video from my Movies folder which is in a different directory. Any help would be nice! thanks.