EADST

Nginx Sharing Folder

I want to check some papers anytime, so a sharing folder is set to display files.

  1. Create a sharing folder. /home/www/blog/media/disk/

  2. 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; }

  3. Check the folder.

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文269篇,共被浏览446344

本站已经建立2028天!

热门文章
文章归档
回到顶部