1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Stream .m4v video files from Server using Plesk

Discussion in 'Plesk for Linux - 8.x and Older' started by ringoya, Oct 6, 2007.

  1. ringoya

    ringoya Guest

    0
     
    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
     
  2. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    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).
     
  3. ringoya

    ringoya Guest

    0
     
    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
     
Loading...