/etc/nginx/conf.d/nginx.conf 中 第二个 server 中配置
PreviewArea -> 指需要被访问的文件夹, 需将该文件夹配置 777 权限
/data10/website -> 需要被访问的文件夹的文件路径, 最好将文件目录配置 777 权限
-
root -> 当前用户
- -> 匹配到就停止
location ~/PreviewArea/(.*) {
root /data10/website;
expires 1h;
access_log off;
}