Nginx development (II) configure online playback of mp4 files

Source: Internet
Author: User
: This article mainly introduces nginx development (2) how to configure online playback of mp4 files. For more information about PHP tutorials, see. 1: The nginx folder Traversal function is enabled in the first step.

Vi/usr/local/nginx/conf/nginx. conf # Edit the configuration file and add the following content under http:

Autoindex on; # enable nginx directory browsing

Autoindex_exact_size off; # the file size is displayed starting from KB.

Autoindex_localtime on; # display the file modification time as the local server time

: Wq! # Save and exit


2: nginx-s stop # stop nginx

Nginx # restart ngnix

3:/usr/local/nginx/html/default root directory of ngnix, where multimedia/pd is created

Copy test.mp4 to this directory.

5: Finally, open the link http: // localhost/multimedia/pd/test.mp4 in the browser directory and start playing the video on the webpage.

Done !!!

The above introduces nginx development (ii) how to configure online playback of mp4 files, including some content, and hope to help friends who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.