使用宝塔面板 配置nginx 访问ftp服务器下面的图片

截图:

使用宝塔面板 配置nginx 访问ftp服务器下面的图片_第1张图片

2.

3.找到  这个标签

然后在里添加来实现映射功能

添加这一段:

使用宝塔面板 配置nginx 访问ftp服务器下面的图片_第2张图片

直接放出来,你们可以复制

然后就可以访问一下啦,图片访问成功

二 .配置nginx 访问ftp图片

1:进入配置文件的目录:

使用宝塔面板 配置nginx 访问ftp服务器下面的图片_第3张图片

2;nginx的默认配置文件nginx.config

#user nobody;

worker_processes 1;

#error_log logs/error.log;

#error_log logs/error.log notice;

#error_log logs/error.log info;

#pid logs/nginx.pid;

events {

worker_connections 1024;

}

http {

include mime.types;

default_type application/octet-stream;

#log_format main '$remote_addr - r e m o t e u s e r [ remote_user [ remoteu

你可能感兴趣的:(程序员,nginx,服务器,android)