小编Ant*_* M.的帖子

使用 nginx 的 FTP 代理

我正在尝试使用 Nginx 设置一个简单的 ftp 代理。现在我的配置是这样的:

server {
    listen 21;
    server_name 52.49.13.91;
    location / {
        proxy_pass ftp://my.ftpsite.com/;
    }
}

server {
    listen 20;
    server_name 52.49.13.91;
    location / {
        proxy_pass ftp://my.ftpsite.com/;
    }
}
Run Code Online (Sandbox Code Playgroud)

但是我从 nginx 收到以下错误: invalid URL prefix in /etc/nginx/sites-enabled/ftp-proxy:5

nginx 甚至能够做到这一点吗?我怎样才能做到这一点?

ftp proxy nginx

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

ftp ×1

nginx ×1

proxy ×1