我正在尝试使用 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 甚至能够做到这一点吗?我怎样才能做到这一点?