多域名 缓存Nginx配置 伪静态
location ~* (runtime|application)/{
return 403;
}
location ~* \.html$ {
if (-e "$document_root/acdn$request_uri.php") {
# 文件存在
rewrite ^(.*)$ /acdn$1.php last;
break;
}
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}

