标签:nginx yii2
location ~* \.(ttf|ttc|otf|eot|woff)$ {
add_header Access-Control-Allow-Origin *;
}
location / {
index index.php;
if (!-e $request_filename){
rewrite ^/(.*) /index.php last;
}
}
location ~ \.php$ {
include /opt/openresty/nginx/conf/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/yii2/web$fastcgi_script_name;
}
本文出自 “编程艺术” 博客,请务必保留此出处http://itsart.blog.51cto.com/1005243/1834339
标签:nginx yii2
原文地址:http://itsart.blog.51cto.com/1005243/1834339