


nginx development (2) Configuring mp4 files for online playback
Jul 29, 2016 am 09:01 AM1: The first step is to enable the folder traversal function of nginx.
vi /usr/local/nginx/conf/nginx.conf #Edit the configuration file and add the following content under http {:
autoindex on; #Turn on nginx directory browsing function
autoindex_exact_size off; #File size is displayed starting from KB
autoindex_localtime on; #Display file modification time as server local time
:wq! #Save and exit
2: nginx -s stop #Stop nginx
nginx #Restart nginx
3:/usr/local/nginx/html/ This directory is the default root directory of nginx, and multimedia/pd was 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, and the webpage starts playing the video.
Done! ! !
The above introduces nginx development (2) Configuring mp4 files for online playback, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to allow external network access to tomcat server

What are the nginx start and stop commands?

How to solve the problem of nginx when accessing the website

How to deploy nodejs project to server

How to communicate between docker containers
