Access Media Server (indexed video folder) via Web Station / http

Currently reading
Access Media Server (indexed video folder) via Web Station / http

D

Deleted member 673

Last edited by a moderator:
DS1621xs with:
- Web Station (currently Nginx, PHP) and the 'web' shared folder on an SSD storage pool for performance
- Media Server 'video' shared folder (indexed) on an HDD storage pool for capacity

I would like to serve 'video' files via web browser / http using a home-brew PHP app, while also retaining Media Server's DLNA functionality. I am open to Apache vs Nginx if that helps.

Is there a way to map the 'video' shared folder into the 'web' shared folder? Or is there a better solution with Nginx or Apache configuration options?

I am a long-time Synology user with PHP skills and good working knowledge of DSM desktop; but limited familiarity with internals of Linux, Nginx or Apache. Limited experience with CLI; but no fear. So hopefully there's a reasonably straightforward approach available.

Thanks for any pointers or solutions! Ron
 
If I understand the question correctly, the answer is... Web Station is currently hosting only from 'web' shared folder ("Enable Personal Website" not activated). Thanks.
 
Upvote 0
A virtual host can use any folder on the NAS as its document root. The 'web' shared folder happens to be the one create when Web Station is installed and is default but not the only one that can be used if you define virtual hosts.
 
Upvote 0
Thanks @fredbert for a straightforward solution. I hadn't considered virtual hosting...

It appears from the documentation that Apache 2.2 and PHP 5.6 are required for virtual hosting. Apache 2.2 is not a problem; but my home-brew app may not run on PHP 5.6. I'm currently using PHP 7.3.

I will test this approach later today, before declaring victory (or asking for an alternative). Ron
 
Upvote 0
My previous workaround solution was to mount a remote copy of the 'video' folder (from another local NAS) into the default 'web' shared folder. Then 'video' simply appears as a subfolder in 'web'. That worked beautifully, functionally.

But I'd rather not rely on the 2nd NAS. Is it possible to locally mount the 'video' shared folder into the 'web' shared folder when both are on the same NAS? Remote Mount won't allow that, I believe.

If local mount is not possible, I'll soon pursue the virtual hosting solution. Ron
 
Upvote 0
A port-based virtual host is the perfect solution. Very easy to implement once I got my head around it. I was conflating "Enable Personal Website" with "Virtual Host" - not the same thing. Thanks @fredbert! Ron
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Make sure to mark a post as a solution for better transparency and help users, that helped you, to get a badge.

Similar threads

  • Question
I was going to do that last night and today but I have really bad cell reception where I live and couldn't...
Replies
17
Views
2,522
  • Question
Thanks, it finally worked I didn't pay attention to the next button at the bottom
Replies
6
Views
1,581
Replies
7
Views
1,870
S
  • Question
Thanks Telos and others! Well, my problem is solved (before reading your post), it may have been an error...
Replies
5
Views
4,323
scooby_nas
S
It seems taken now! I have to see if this solve the issue in my music streamer, now. Meanwhile i do not...
Replies
17
Views
20,234
  • Question
Hi, I don't see any threads relating to DS710+ in Resources or Forums that I should put this three on, so...
Replies
0
Views
1,614
Thanks for your insight! Im thinking more and more scans on the client side seem like the way to go!
Replies
2
Views
1,988

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top