Home > Backend Development > PHP Tutorial > How to enable Nginx directory browsing function

How to enable Nginx directory browsing function

WBOY
Release: 2016-07-29 09:12:29
Original
976 people have browsed it

location / {
            root /data/www/file                                                                                                                                                                                                                    off;                                                // Turn off detailed file size statistics, let the file size display in MB, GB units The default is B; t AutoIindex_LocalTime on; // Open the dating date of display files to display files to the local time zone of the server!

}

After the above configuration, use IE to access the root directory of the server, and a list of all files in the /data/www/file directory will be displayed. Nginx directory browsing renderings:

How to enable Nginx directory browsing function The above introduces the method of enabling Nginx directory browsing function, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template