随笔:Linux下 Nginx、ftp 配合使用乱码、403 问题记录

  • Post author:
  • Post category:linux




场景:

Linux 下安装了nginx、ftp,使用nginx代理ftp_dir目录访问文件出现乱码、403 forbidden问题。


nginx 的配置:

#user  root;
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;
    client_max_body_size 200m;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;
    # another virtual host using mix of IP-, name-, and port-based configuration
   



版权声明:本文为cp026la原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。