Chinaunix首页 | 论坛 | 博客
  • 博客访问: 270169
  • 博文数量: 52
  • 博客积分: 1278
  • 博客等级: 中尉
  • 技术积分: 627
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-26 12:46
文章分类

全部博文(52)

文章存档

2013年(1)

2012年(51)

分类: 系统运维

2012-02-22 10:38:22

    server {
        listen       80;
        server_name  my.clb.com;
        root /var/website/ci;
        index        index.php index.html index.htm;

        access_log  logs/my.clb.com_access.log  main;

        location / {
           if ($request_filename !~ (js|css|images|robots\.txt|index\.php) ) {
                rewrite ^(.*)$ /index.php/$1 last;
                break;
           }
        }

        location ~ /index.php/ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            include        fastcgi.conf;
        }

    }
阅读(1345) | 评论(0) | 转发(0) |
0

上一篇:nginx 日志分析

下一篇:nginx 访问日志分析

给主人留下些什么吧!~~