• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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