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