Chinaunix首页 | 论坛 | 博客

rgy

  • 博客访问: 408384
  • 博文数量: 179
  • 博客积分: 2580
  • 博客等级: 少校
  • 技术积分: 1890
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-19 08:45
文章分类

全部博文(179)

文章存档

2012年(7)

2011年(43)

2010年(60)

2009年(69)

我的朋友

分类: LINUX

2010-01-28 18:43:15

server
  {
    listen       80;
    server_name   ;
    index index.html index.htm index.php;
    root  /opt/web/vhost;
    #limit_conn   crawler  20;
    include /usr/local/nginx/conf/vhost/rewrite/abc.com-rewrite.conf ;
    location ~ .*\.(php|php5)?$
    {
      #fastcgi_pass  unix:/tmp/php-cgi.sock;
      fastcgi_pass  127.0.0.1:9000;
      fastcgi_index index.php;
      include fcgi.conf;
      fastcgi_param  SCRIPT_FILENAME /opt/web/vhost/$fastcgi_script_name;
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
      expires      30d;
    }
    location ~ .*\.(js|css)?$
    {
      expires      1h;
    }
    access_log  /opt/logs/abc.com.access  main;
           error_page  404 /404.php;
      }
阅读(480) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~