Nginx builds a web service LAN to access local folders

Nginx builds a web service LAN to access local folders

1. Nginx installation

Refer to Nginx introduction and installation ;

2. Modify configuration parameters

  • Reviseuser
# 修改配置文件 第一句
#user  nobody; 
user  root;
  • modify access folder

Set the local path of the LAN access folder;localhost:8099/result/

location  /result/ {
   
    
    
   root   /home/ubuntu/hdd/MTDVision/ ; # 设置访问文件夹
   autoindex on;  #开启目录浏览功能
}
  • Nginxfull profile/etc

Guess you like

Origin blog.csdn.net/ch_ccc/article/details/130357056