搭建了一个API服务,api.yii2-sns.com,配置nginx如下:

location / {
	if (!-e $request_filename){
		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
	}
}

Leave A Comment

Recommended Posts