Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

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

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

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
 
Web Station virtual host?
 
Upvote 0
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 Question
Hello, I connected to Synology via Cloudflare access tunnel. I cannot receive or send mail with MailPlus...
Replies
0
Views
507
The default DSM ports are HTTP 5000 and HTTPS 5001. I was meaning you to replace NAS_LAN_IP with your...
Replies
5
Views
513
  • Question Question
I didn't set a fixed IP, that is what was assigned when I set it up, so that is good to hear. Thanks for...
Replies
3
Views
845

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top