• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Stream .m4v video files from Server using Plesk

R

ringoya

Guest
I have had a tough time finding how to stream videos from my server. Which control should I use to configure the server to read video files as video files, not text?

One suggestion was to create an .htaccess file for the folder where the videos are located. So far, it has not worked. Can someone give me a suggestion on how to do this using Plesk? I have no idea how to add MIME properly to allow .m4v and .mp4 because everything I;ve done is not working.

What I've done through Plesk:
1.created a .htaccess file on notepad
2.added

AddType video/x-m4v m4v
AddType audio/x-m4a m4a
AddType video/mp4 mp4

3.uploaded to file to /httpdoc
4.erased the .txt file ending so that it is just .htaccess
5.no change -- itunes and feedburner do not pick up the video
 
This doesn't really have anything to do with Plesk, this is just Apache configuration. Assuming those types are correct (I found video/mp4 for .m4v and audio/mp4 for .m4a when googling) I think you need something like this:

Code:
AddType video/x-m4v .m4v
AddType audio/x-m4a .m4a
AddType video/mp4 .mp4

I believe you just need to add dots in front of the extensions. Whether you put these in a .htaccess file, a vhost.conf file, a separate file in /etc/httpd/conf.d/ or your httpd.conf shouldn't really matter (just different scopes).
 
Thank you!

Dear Bruen,

Thank you so much for answering my question. It worked like a charm. Just forgot the dots and all of a sudden my feeds were readable. I am doing cartwheels around my office! I thought there might be a way to configure everything in Plesk, but I guess it's just something simple that I missed. I am new and learning quickly about working with my own server. Anyway, I really appreciate your help!

Regards, John
 
Back
Top