会的问题不记录下来的代价就是下次还是不会,浪费了半下午的时候。记录下来。
开发环境 centos7.2 php7.1 ci3.02
道理说和环境的版本号无关的。
贴vhost配置文件
server {
listen 80;
server_name 1m85.com;
index index.html index.htm index.php;
root /alidata/www/1m85;
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
}