搭建了一个API服务,api.yii2-sns.com,配置nginx如下:
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
学习笔记
搭建了一个API服务,api.yii2-sns.com,配置nginx如下:
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}