• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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