totabc 发表于 2017-12-7 21:09:04

老A 发表于 2017-12-7 21:06
也是跟帖子那个伪静态一样的?

恩,对的,没错

ANYMOZ 发表于 2017-12-7 21:23:21

试试这个伪静态规则

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

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

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

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

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

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

# Route dynamic request to index.php
location / {
        try_files $uri $uri/ /index.php?$query_string;
}

老A 发表于 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

qqab 发表于 2018-3-23 09:33:39

ANYMOZ 发表于 2017-12-7 21:23
试试这个伪静态规则

哇塞 真的可以用

qqab 发表于 2018-3-23 16:28:14

totabc 发表于 2017-12-7 20:44
我的好像没问题哦,看看https://www.ap79.cn

大佬 为什么你的首页背景图能随机变换?
页: 1 2 [3]
查看完整版本: chevereto图床https问题