hege 发表于 2018-11-14 10:38:30

nginx.conf简单配置

# cat nginx/conf/nginx.conf  
worker_processes1;
  
error_loglogs/error.log error;
  
events {
  
    worker_connections1024;
  
}
  
http {
  
    include       mime.types;
  
    default_typeapplication/octet-stream;
  
    sendfile      on;
  
    keepalive_timeout65;
  
    log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
  
                      '$status $body_bytes_sent "$http_referer" '
  
                      '"$http_user_agent" "$http_x_forwarded_for"';
  

  
    access_loglogs/access.logmain;
  
    server {
  
       listen80;
  
      location /{
  
         deny all;
  
}
  
    include extra/www.conf;
  
    include extra/bbs.conf;
  
    include extra/blog.conf;
  
}


页: [1]
查看完整版本: nginx.conf简单配置