多域名 缓存Nginx配置 伪静态

zblog1年前zblog问题解答33

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;

    }

}


相关文章

mysql数据库坏了 linux启动不了  ib_logfile0 和 ib_logfile1

mysql数据库坏了 linux启动不了 ib_logfile0 和 ib_logfile1

mysql数据库坏了 linux启动不了把 ib_logfile0 和 ib_logfile1 删除或重命名 重新启动 (数据损坏了 ,可以事后重新导入)...

bin2hex 函数 php 将二进制数据转换为十六进制表示的字符串。

在PHP中,bin2hex 函数用于将二进制数据转换为十六进制表示的字符串。这个函数非常有用,尤其是在处理二进制数据并需要将其以人类可读的格式输出或存储时。函数原型如下:php复制代码str...

【此方案收费】阿里云服务器同账号的文件互传 -私网互传-【VPC对等连接】私网ip互通【阿里云套路收费!闭坑!】

【此方案收费】阿里云服务器同账号的文件互传 -私网互传-【VPC对等连接】私网ip互通【阿里云套路收费!闭坑!】

同一个阿里云账号 怎么用私网传输?【VPC对等连接】!跨地域私网确定收费!! 这个就是收费项目哦哦哦对等连接可以在两台 阿里云服务器使用 私网传输,但流量有限制。CDT 赠送200 GB/月公网流量,...

宝塔续签证书 SSH证书 续签Let's Encrypt证书

宝塔续签证书 SSH证书 续签Let's Encrypt证书

续签Let's Encrypt证书 shell 脚本/www/server/panel/pyenv/bin/python3 -u /www/server/panel/class/acme_v2...