全球主机交流论坛

标题: 求CheveretoV3版本3.20.17的Nginx伪静态 [打印本页]

作者: 981077525    时间: 2022-4-1 10:49
标题: 求CheveretoV3版本3.20.17的Nginx伪静态
RT
作者: YorkZhao    时间: 2022-4-1 11:04
官网文档看看?
作者: iks    时间: 2022-4-1 11:12
  1. # Disable access to sensitive files in app path
  2. location ~ /(app|content|lib|importer)/.*\.(po|php|lock|sql|txt)$ {
  3.    deny all;
  4. }

  5. # Enable CORS header (needed for CDN)
  6. location ~* \.(ttf|ttc|otf|eot|woff|woff2|css|js)$ {
  7.         add_header Access-Control-Allow-Origin "*";
  8. }

  9. # Force serve upload path as static content (match your upload folder if needed)
  10. location /images {}

  11. # Route dynamic request to index.php
  12. location / {
  13.         try_files $uri $uri/ /index.php$is_args$query_string;
  14. }
复制代码

作者: 981077525    时间: 2022-4-1 12:17
YorkZhao 发表于 2022-4-1 11:04
官网文档看看?

不知道官网的那个,为啥会报错,才来求助广大的
mjj们




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4