ChinaUnix.net
相关文章推荐:

nginx 输出日志

我在配置文件中加了access_log off;可是日志还是在增加,请问nginx要怎么样才能让他不生成日志

by xueleixu - 服务器应用 - 2009-01-04 13:35:45 阅读(3278) 回复(4)

相关讨论

请教使用nginx的兄弟,nginx日志输出默认类似是这样的: 58.213.45.65 - - [16/Sep/2009:12:11:34 +0800] GET /news/t1234.shtml HTTP/1.1 "200" 585 "http://www.baidu.com" "Mozilla/4.0(MSIE6)" 我想输出成这样: 58.213.45.65 - - [2009-09-16 12:11:34] GET http://www.domain.com/news/t1234.shtml HTTP/1.1 "200" 585 "http://www.baidu.com" "Mozilla/4.0(MSIE6)" 日期格式好改,改下源文件ngx_http_log_module.c就...

by jzccn - 服务器应用 - 2009-09-21 11:08:48 阅读(1896) 回复(1)

具体是装好后安装discuz论坛,在检查配置的时候失去响应,然后提示貌似是nginx和fastcgi连接不上出现的那个,检查错误日志,显示 2009/06/02 19:36:19 [error] 1578#0: *1 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.0.86, server: 192.168.0.20, request: "POST /install/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.20",...

by 田埂上卖粮草的 - BSD - 2009-06-03 18:12:39 阅读(4354) 回复(3)

我在redhat as4 u6 x86下编译使用nginx做反向代理,想利用nginx日志来分析,使用awstats软件来分析,现在想使用logrotate来截断日志,每天一个文件,因为现在日志一天太大了,一天5G.我的配置如下: #cat /etc/logrotate.d/nginx /home/log/*.access.log { daily rotate 31 missingok notifempty #compress create sharedscripts postrotate [ ! -f /usr/lo...

by myfreeke - 服务器应用 - 2008-10-30 09:46:19 阅读(2698) 回复(11)

2008/06/20 11:23:59 [error] 6038#0: *12995240 upstream timed out (110: Connection timed out) while reading upstream 2008/06/20 11:23:59 [error] 6038#0: *12994925 upstream timed out (110: Connection timed out) while reading upstream 很多这种日志,不知道为啥,应用暂时没看出有什么问题:em05:

by killua - 服务器应用 - 2008-06-20 16:31:36 阅读(2316) 回复(2)

如何在squid中记录用户的ip地址而不是nginx所在服务器地址 不知有人碰到这样问题,请赐教!! 谢谢了

by bigtimer - 服务器应用 - 2008-01-10 13:24:54 阅读(2651) 回复(3)

官方文档好像没有提到 [ 本帖最后由 moartel 于 2009-1-21 17:01 编辑 ]

by moartel - 服务器应用 - 2009-02-02 13:23:28 阅读(3055) 回复(7)

最近想把apache迁移到nginx上去,但是发现这么一个问题。 apache日志中有这么一个变量“%D ”(服务器处理本请求所用时间,以微秒为单位。) 但是在nginx似乎没有这个变量,而且这个变量又是必须的,如何解决呢?

by mageguoshi - 服务器应用 - 2008-12-24 13:26:37 阅读(2885) 回复(3)

我的nginx安装完成以后,启动了php-cgi /usr/local/nginx/conf# /usr/local/nginx/sbin/spawn-fcgi -f /usr/local/php5/bin/php-cgi -a 127.0.0.1 -p 10005 -u lighttpd -g lighttpd spawn-fcgi.c.206: child spawned successfully: PID: 19688 ps auxww | grep cgi lighttpd 19688 0.0 0.2 19096 4636 ? Ss 14:56 0:00 /usr/local/php5/bin/php-cgi lighttpd 19689 0.0 0.1 19096 2620 ? S 14:56...

by liu1084 - 服务器应用 - 2008-12-01 15:02:52 阅读(2881) 回复(2)

来chinaunix这么久了,还没有发布自己的一个原创 如果大家转载,请注明“我就要看看”网站 www.591cc.com 本人的QQ:105348557,欢迎大家互相交流! 编译安装软件包 源码编译安装所需包(Source) 升级OpenSSL及OpenSSH tar xvf openssl-0.9.8h.tar.gz cd openssl-0.9.8h ./config --prefix=/usr/local/openssl make make test make install tar zxvf openssh-5.0p1.tar.gz ...

by zhy1899 - 服务器应用 - 2009-09-26 20:31:15 阅读(3155) 回复(10)

问题1. 我设置了关闭正常的访问记录,和错误记录,结果/var/log/nginx/下的access.log没记录正常的,倒出现了404的错误日志,error.log也记录了404的错误日志,只是记录风格不同,这是我的相关nginx.conf: server { listen 54.87.34.12:80; server_name www.aaa.com; #charset koi8-r; #access_log logs/host.access.log main; location / { root /aaa/; ...

by hunforce - 服务器应用 - 2009-04-28 15:40:22 阅读(4495) 回复(2)