1. 程式人生 > >Nginx 下Thinkphp5偽靜態

Nginx 下Thinkphp5偽靜態

server {
listen 80;
server_name all.bjed.com;
root "F:\www\asdata";
location / {
index index.html index.htm index.php;
#autoindex on;
    if (!-e $request_filename) {
        rewrite  ^(.*)$  /index.php?s=/$1  last;
        break;
    }
  }