全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 706|回复: 3

[美国VPS] 求CheveretoV3版本3.20.17的Nginx伪静态

[复制链接]
发表于 2022-4-1 10:49:05 | 显示全部楼层 |阅读模式
RT
发表于 2022-4-1 11:04:20 | 显示全部楼层
官网文档看看?
发表于 2022-4-1 11:12:39 | 显示全部楼层
  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. }
复制代码
 楼主| 发表于 2022-4-1 12:17:16 来自手机 | 显示全部楼层
YorkZhao 发表于 2022-4-1 11:04
官网文档看看?

不知道官网的那个,为啥会报错,才来求助广大的
mjj们
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-3 18:32 , Processed in 0.057948 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表