Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2224592
  • 博文数量: 533
  • 博客积分: 8689
  • 博客等级: 中将
  • 技术积分: 7046
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-26 10:00
文章分类

全部博文(533)

文章存档

2024年(2)

2023年(4)

2022年(16)

2014年(90)

2013年(76)

2012年(125)

2011年(184)

2010年(37)

分类: LINUX

2011-07-12 11:12:18


@echo off
cd  \
cd nginx\
cd logs\
tskill  nginx
tskill  nginx
del  -F   access.log
del  -F  error.log
rem
cd  \
cd nginx\
nginx -t
nginx -s reload
nginx
echo on


原来把access_log nul ; 这样就OK 了。


#user  nobody;
worker_processes  1;

error_log  off ;
##error_log  logs/error.log  notice;
##error_log  logs/error.log  info;
 
#pid        logs/nginx.pid;

events {
    worker_connections  2048;
}

http {
    include mime.types;
    include upstream.conf;
    default_type  application/octet-stream;

   ##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  nul ;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server_names_hash_bucket_size 2048;

 
server
{
       listen 80;
       server_name pr1.borwork.com;

    location /nginx_status {
      stub_status on;
      access_log   off;
    }
}

include pr_include.conf;

include website_server.conf;

include single_domain_blog.conf;


}
阅读(4385) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~