• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Global image?

iantresman

Basic Pleskian
When I create a new subscription, I'd like my default home page to include a couple of videos that are accessed from a single location. I don't want to duplicate each on in every subscription, eg. my subscriptions/domains:

/var/www/vhosts/mylibrary/files/
/var/www/vhosts/domain1.com/httpdocs/
/var/www/vhosts/domain1.com/domain2.com/
/var/www/vhosts/domain3.com/httpdocs/

And then each domain would have an index.htm contain an HTML5 snippet like this:

<video src="/var/www/vhosts/mylibrary/files/movie.webm" poster="movie.jpg" controls>
This is fallback content to display if the browser
does not support the video element.
</video>

Ideally I'd like to use htaccess to alias a /video directory to /var/www/vhosts/mylibrary/files/, eg.

<video src="/videos/movie.webm" poster="movie.jpg" controls>
This is fallback content to display if the browser
does not support the video element.
</video>

Can this be done? I've tried various options, but I can't see to alias outside my webspace.
 
Did you try to use skeleton for new created vhosts:

# ll /var/www/vhosts/.skel/0/
total 12
drwxr-xr-x 3 root root 4096 Jun 1 18:43 cgi-bin
drwxr-xr-x 2 root root 4096 Jun 1 18:43 error_docs
drwxr-xr-x 5 root root 4096 Jun 1 18:43 httpdocs

?
 
If I'm not mistaken, skeleton will let me duplicate the contents. But if I want to save on disk space, how can I get one domain to access files on the webspace of another? I'm guessing some tweaks to httpd.conf will do it (and securely, since it is read-only), but I'm out of my depth here.
 
Hi,

You can't do it as you intend because the video tag doesn't allow file paths in the src parameter : http://www.w3schools.com/html5/att_video_src.asp , so it kind of doesn't matter that it won't work :)

But what you could do is set up one (parent) domain to host the video files and then use that URL for the src element of the video tag.

Paul.
 
Can't I "just" specify an relative filename (inside the webspace), and then alias it to another location. For example, I have:

/var/www/vhosts/mylibrary/files/
/var/www/vhosts/domain1.com/httpdocs/
/var/www/vhosts/domain1.com/domain2.com/
/var/www/vhosts/domain3.com/httpdocs/

And then: http://www.domain3.com/videos/video1.wmv
is aliased to: /var/www/vhosts/mylibrary/files/videos/video1.wmv
 
Last edited:
Back
Top