AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 408556
Accepted
ananthan
ananthan
Asked: 2012-07-18 08:02:34 +0800 CST2012-07-18 08:02:34 +0800 CST 2012-07-18 08:02:34 +0800 CST

重新编译 Nginx 1.1.19 以进行分块上传,但仍然无法正常工作....

  • 772

我无法让分块上传工作。即使在重新编译 Nginx 之后。我在 ubuntu 12.04 上使用 nginx 1.1.19。我下载了nginx 1.1.19的源码和分块上传的模块,编译如下。

./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_gzip_static_module  --with-http_ssl_module --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl **--add-module=path-to-chunkin-module --with-pcre=/path-to-pre-library.**

编译后我得到了这个:

Configuration summary   

+ using PCRE library: /home/www-data/pcre-8.10

+ using system OpenSSL library    + md5: using OpenSSL library    + sha1: using OpenSSL library   
+ using system zlib library

  nginx path prefix: "/etc/nginx" 

  nginx binary file: "/etc/nginx/sbin/nginx"
    nginx configuration prefix: "/etc/nginx"
    nginx configuration file: "/etc/nginx/nginx.conf"     nginx pid file: "/var/run/nginx.pid"  

 nginx error log file: "/var/log/nginx/error.log"     nginx http
access log file: "/var/log/nginx/access.log"     nginx http client
**request body temporary files: "client_body_temp"**

**nginx http proxy temporary files: "proxy_temp"** 

 nginx http fastcgi temporary files: "/var/lib/nginx/fastcgi"    
nginx http uwsgi temporary files: "uwsgi_temp"     nginx http scgi
temporary files: "scgi_temp"

即使我不想要代理模块,我也无法使用--without-http_proxy-module. 之后我重新启动了nginx。

nginx -V 显示带有 chunkin 模块和 pcre 的编译模块。但是块上传仍然无法正常工作。我配置sites-enabled/default并添加了

chunkin on;
    error_page 411 = @my_411_error;   location @my_411_error {
      chunkin_resume;   }

但是块上传仍然远离。curl输出显示:

curl -I ipaddress-of-server

HTTP/1.1 200 OK
Server: nginx
Date: Tue, 17 Jul 2012 20:31:56 GMT
Content-Type: text/html
Content-Length: 4448
Last-Modified: Mon, 11 Jun 2012 18:02:19 GMT
Connection: keep-alive
Accept-Ranges: bytes 

我在访问日志中收到411 错误。

ubuntu nginx chunked
  • 1 1 个回答
  • 926 Views

1 个回答

  • Voted
  1. Best Answer
    ananthan
    2012-07-19T05:02:05+08:002012-07-19T05:02:05+08:00

    在/etc/nginx.conf中设置client_max_body_size并重启nginx后解决

    • 1

相关问题

  • 无法通过 Ubuntu VPN 访问外部网络

  • ubuntu apt-get upgrade - 如何在 shell 中单击确定?

  • VirtualBox 上 Ubuntu 的访客优化技巧 [关闭]

  • 外部硬盘上的 virtualbox 虚拟硬盘驱动器(Vista 主机上的 ubuntu 客户机)

  • 如何在 Ubuntu 上挂载 LVM 分区?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve