宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
123
返回列表 发新帖
楼主: 老A

chevereto图床https问题

[复制链接]
发表于 2017-12-7 21:09:04 | 显示全部楼层
老A 发表于 2017-12-7 21:06
也是跟帖子那个伪静态一样的?

恩,对的,没错
发表于 2017-12-7 21:23:21 | 显示全部楼层
试试这个伪静态规则

  1. # Chevereto Nginx rewrite rules
  2. # Make sure to place these inside your server{} block

  3. # Disable access to .ht* files
  4. location ~ /\.ht {
  5.         deny all;
  6. }

  7. # Disable access to sensitive files in app path
  8. location ~ /(app|content|lib)/.*\.(po|php|lock|sql)$ {
  9.    deny all;
  10. }

  11. # Disable log on not found images + image replacement
  12. location ~* (jpe?g|png|gif) {
  13.         log_not_found off;
  14.         error_page 404 /content/images/system/default/404.gif;
  15. }

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

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

  22. # Route dynamic request to index.php
  23. location / {
  24.         try_files $uri $uri/ /index.php?$query_string;
  25. }
复制代码
 楼主| 发表于 2017-12-7 21:29:03 来自手机 | 显示全部楼层
ANYMOZ 发表于 2017-12-7 21:23
试试这个伪静态规则

一会回宿舍试试,谢大佬
发表于 2017-12-8 09:47:20 | 显示全部楼层
京东云?
楼主用的什么证书?
发表于 2017-12-8 09:53:21 来自手机 | 显示全部楼层
没有问题,c.02.tn
发表于 2018-3-23 09:33:39 | 显示全部楼层
ANYMOZ 发表于 2017-12-7 21:23
试试这个伪静态规则

哇塞 真的可以用
发表于 2018-3-23 16:28:14 | 显示全部楼层
totabc 发表于 2017-12-7 20:44
我的好像没问题哦,看看https://www.ap79.cn

大佬 为什么你的首页背景图能随机变换?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|兜哪儿主机交流论坛

GMT+8, 2024-9-22 13:23 , Processed in 0.056064 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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