server {    
        listen 80;
        root /www/project/zhongguomayun/public;
        index index.php index.htm index.html;
        server_name zhongguomayun.com www.zhongguomayun.com static.zhongguomayun.com m.zhongguomayun.com;
        access_log /home/wwwlogs/lvs_access.log;
        error_log /home/wwwlogs/nginx_error.log;
        fastcgi_param  PHP_VALUE  "open_basedir=$document_root:/tmp/";
                if ($host ~ '^zhongguomayun.com'){
                            return 301 http://www.zhongguomayun.com$request_uri;
                }
                location / {
                     try_files $uri $uri/ /index.php?$args;
                }
        location ~ .*.(gif|jpg|jpeg|png|bmp|ico|swf|mp3|wma)$ {
        expires 365d;
        }
        location ~ .*.(js|css)$ {
        expires 30d;
        }
        include enable-php.conf;
        location ~ /\.ht {
            deny all;
        }
        location  ~ /\.git {
            deny all;
        }
    }