Chinaunix首页 | 论坛 | 博客
  • 博客访问: 643425
  • 博文数量: 198
  • 博客积分: 4256
  • 博客等级: 上校
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-15 13:12
文章分类

全部博文(198)

文章存档

2012年(12)

2011年(39)

2010年(135)

2009年(12)

我的朋友

分类: LINUX

2010-09-06 14:20:38

    server {
        listen       80;
        server_name  xxxx.com.cn; 

        error_log  /tmp/eror.log;
        set $www_root /home/web/yqbb/bgskk;

        location / {
            root   $www_root;
            index  index.html index.php;
        }

        location /feedback {
            index  index.php;
            alias /home/web/yqbb/bgskk/app/htdocs;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ ^/feedback/.+\.php$ {
                root /home/web/yqbb/bgskk/app/htdocs;
                rewrite /feedback/(.*\.php?) /$1 break;
                include fastcgi.conf;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param SCRIPT_FILENAME /home/web/yqbb/bgskk/app/htdocs/$fastcgi_script_name;
        }

        location ~ .*\.(php|php5)?$ {
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index index.php;
                include fastcgi.conf;
        }

    }



阅读(1825) | 评论(0) | 转发(1) |
0

上一篇:Nagios监控网页

下一篇:iptables NAT 实例

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