inux CentOS 7.2 oneinstack nginx 添加伪静态
手动添加方式如下:
打开/usr/local/nginx/conf/vhost/xxx.conf
找到conf下这一行
root /data/wwwroot/uaes.xcxstock.cn;
另起一行添加
include /usr/local/nginx/conf/rewrite/codeigniter.conf;
手动添加conf配置在rewrite目录,写如下信息
location / {
try_files $uri $uri/ /index.php?/$request_uri;
}
最后重启nginx服务器