Solved Web server Gurus -- want Apache access to multi media files


jimbo45

Well-known member
Power User
VIP
Local time
7:03 AM
Posts
1,476
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
Is there any way of getting access to multi media files via http via a web server without having to copy zillions of files into the server root webserver directory

Testing on a Local server at the moment - it's easy enough to set the servers root directory as ~/username

Same mechanics as Windows if you installed WAMP or probably similar if using IIS. My multimedia files though are on a Linux NAS server so it's easier to test locally on that but running a web browser from windows is fine with serverIP~/userid as well for the server on your LAN.

so this comes out as

Screenshot_20220412_124039.png
then you can see / access a list of files in that subdirectory - in this case just one -- motto in all these things is of course testing simple !!!!

e,g

Screenshot_20220412_124244.png
There's no problem with a small number of files / office documents etc but I don't want to have to "replicate" a few 100 X GB of multi media files.

Basically I have say a load of multi-media files say mounted on /mnt/DV1

Now is there any way the Apache web server can access all these files on that particular drive.

(I'm testing on local LAN so I can always beef up / tidy up security later). Security at this stage just adds extra unnecessary complication into the mix.

The std Apache2 server for users starts with a file called public_html in the users home directory. Creating sub directories and files will display those with http://localhost~/username

What I need is some link to display directory on /mnt/DV0 and have access to the files.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

z3r010

Administrator
Staff member
Local time
8:03 AM
Posts
1,892
Location
Worsley, Manchester, UK
OS
Windows 11 Workstation

My Computers

System One System Two

  • OS
    Windows 11 Workstation
    Computer type
    PC/Desktop
    Manufacturer/Model
    doofenshmirtz evil incorporated
    CPU
    Ryzen 9 5950X
    Motherboard
    Asus ROG Crosshair VIII Formula
    Memory
    Corsair Vengeance RGB PRO Black 64GB (4x16GB) 3600MHz AMD Ryzen Tuned DDR4
    Graphics Card(s)
    ASUS AMD Radeon RX 6900 XT 16GB ROG Strix LC OC
    Sound Card
    Sound BlasterX Katana
    Monitor(s) Displays
    3 x27" Dell U2714H & 1 x 34" Dell
    Hard Drives
    Samsung 980 Pro 1TB M.2 2280 PCI-e 4.0 x4 NVMe Solid State
    Drive
    PSU
    ASUS ROG THOR 850W 80 Plus Platinum
    Case
    ASUS ROG Strix Helios Midi-Tower ARGB Gaming Case
    Cooling
    ASUS ROG Strix LC Performance RGB AIO CPU Liquid Cooler - 360mm
    Keyboard
    Logi Ergo
    Mouse
    Logitech MX Master 3
    Internet Speed
    900/100 Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender, Malwarebytes Pro
    Other Info
    HP M281 Printer
    Logitech Brio Stream webcam
    Yeti X mic
  • Operating System
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop
    CPU
    i7

jimbo45

Well-known member
Power User
VIP
Thread Starter
Local time
7:03 AM
Posts
1,476
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
I've no idea with Apache, but can you just map a virtual folder? it looks like it can be done via an alias command in the config.

Hi there
Thanks

That's the answer -- It's the same essentially on apache as IIS -all httpd service.

Working now so solved.

Thanks again !!!

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Top Bottom