容器技术交流

 找回密码
 立即注册
查看: 2843|回复: 3

升级NGINX失败

[复制链接]
发表于 2011-6-20 17:08:00 | 显示全部楼层 |阅读模式
         
nginx升级到1.0.4后编辑望网站提示错误:

操作失败!
您填写的内容有错,错误信息
nginx: [emerg] "client_header_buffer_size" directive is not allowed here in /usr/local/nginx/conf/proxy_pass.conf:13 nginx: configuration file /usr/local/nginx/conf/vhost.test.conf test failed 。

重启nginx后错误依然。所有网站无法访问。
只好降回1.0.2。
但问题依然存在。。。。

在lum首页中看nginx进程数显示未启动。
nginx.conf vhost.conf(nginx)做过“还原原始内容的”的操作。
但依然是错误。
发表于 2011-6-20 17:09:36 | 显示全部楼层
/usr/local/nginx/conf/proxy_pass.conf
把这个文件的第13行和第14行注释掉
 楼主| 发表于 2011-6-20 17:16:41 | 显示全部楼层
洞哥,回复的太快了!!感谢!!!

#client_header_buffer_size 256k;
#large_client_header_buffers 4 256k

注释掉这两行就恢复正常了。
请教洞哥,是什么原因?
发表于 2011-6-20 22:57:53 | 显示全部楼层
要学会看错误原因嘛,配置错误
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 03:07 , Processed in 0.026983 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表