Nginx Sharing Folder
作者:XD / 发表: 2020年6月27日 08:43 / 更新: 2020年6月27日 08:58 / 编程笔记 / 阅读量:2146
I want to check some papers anytime, so a sharing folder is set to display files.
-
Create a sharing folder.
/home/www/blog/media/disk/
-
Add the following lines in the Nginx setting file.
/etc/nginx/conf.d/blog.conf
location /disk/ { alias /home/www/blog/media/disk/; autoindex on; autoindex_exact_size off;
autoindex_localtime on; } -
Check the folder.
相关标签