filts 发表于 2018-11-14 11:50:14

nginx log打印自定义头

#vim /usr/local/nginx/conf/vhost/web.conf  
server
  
{
  
      listen 80 default;
  
      server_name www.it300.com;
  
      index index.html index.htm index.php;
  
      root /data/httpd/it300.com;
  
      location ~ .*\.php?$
  
      {
  
   include fastcgi.conf;
  
       fastcgi_pass 127.0.0.1:9000;
  
       fastcgi_index index.php;
  
      }
  
      location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  
      {
  
      expires 30d;17      }
  
      location ~ .*\.(js|css)?$
  
      {
  
      expires 1h;
  
      }
  
      access_log /data/logs/it300.com.log access;
  
   }


页: [1]
查看完整版本: nginx log打印自定义头