Nginx Development (ii) configuration MP4 file online playback

Source: Internet
Author: User
1: First step to start the Nginx folder traversal function

Vi/usr/local/nginx/conf/nginx.conf #编辑配置文件, add the following under HTTP {:

AutoIndex on; #开启nginx目录浏览功能

Autoindex_exact_size off; #文件大小从KB开始显示

Autoindex_localtime on; #显示文件修改时间为服务器本地时间

: wq! #保存, exit


2:nginx-s stop# Stop Nginx

Nginx #重新启动ngnix

The default root of Ngnix when 3:/usr/local/nginx/html/this directory, MULTIMEDIA/PD is created in this directory

Copy a test.mp4 to this directory.

5: Finally, open the link in the browser directory: Http://localhost/multimedia/pd/test.mp4, the page starts to play the video.

Complete!!!

The above describes the Nginx development (ii) configuration MP4 file online playback, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.