蓝天采集器 nginx 配置

server
{
root /var/www/vhosts/sky.cl-light.com.cn;
server_name sky.cl-light.com.cn;
index index.php index.html;

location /{

if (!-d $request_filename){
set $rule_0 1$rule_0;
}
if (!-f $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)$ /index.php/$1 last;
}

}

#location /{
#try_files $uri /index.php/$uri&$args;
# }

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

}

server
{
root /var/www/vhosts/sky.cl-light.com.cn;
server_name images.cl-light.com.cn;

}

相关推荐

nginx pagespeed config

# Enable pagespeed module by putting the following in http context pagespeed on; pagespeed Domain example. …

暂无评论

微信扫一扫,分享到朋友圈

蓝天采集器 nginx 配置