建站教程Chevereto Nginx 伪静态Rewrite规则图床菜鸟教程nginx,规则 - Powered by Discuz!
<link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">Chevereto Nginx 伪静态Rewrite规则<br /><font style="color:rgb(51, 51, 51)"><font face="&quot;"><font style="font-size:16px">Chevereto 是目前最为强大的 PHP 图床系统,通过它可部署多用户公开或私有的图片存储服务,现在 Chevereto 出了免费的版本,小伙伴可以围观一下。</font></font></font><font style="color:rgb(51, 51, 51)"><font face="&quot;"><font style="font-size:16px"><font style="color:rgb(204, 0, 0)"><font style="background-color:transparent"><a href="https://github.com/Chevereto/Chevereto-Free" target="_blank">https://github.com/Chevereto/Chevereto-Free</a></font></font></font></font></font><font style="color:rgb(51, 51, 51)"><font face="&quot;"><font style="font-size:16px">Chevereto 默认提供基于 Apache 环境的伪静态规则,如果服务器是 Nginx 则需要设置以下Rewrite 伪静态规则:</font></font></font><ol><li># Image not found replacement<br /><li>location ~* (jpe?g|png|gif) {<br /><li> log_not_found off;<br /><li> error_page 404 /content/images/system/default/404.gif;<br /><li>}<br /><li><br /><li># CORS header (avoids font rendering issues)<br /><li>location ~ \.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {<br /><li> add_header Access-Control-Allow-Origin "*";<br /><li>}<br /><li><br /><li># Pretty URLs<br /><li>location / {<br /><li> try_files $uri $uri/ /index.php?$query_string;<br /><li>}<br /><li>location /admin {<br /><li> try_files $uri /admin/index.php?$args;<br /><li>}</ol><br /><br /> <h3>版权声明</h3> <p>1、本站所有资源来源于网络搜集和会员分享</p><p>2、本站所有程序仅供大家学习和参考,不得进行商业用途</p><p>3、如果觉得程序还可以、请购买官方正版</p><p>4、对不遵守本声明或其他违法、恶意使用本网站内容者,本网站保留追究其法律责任的权利。</p> <p>唯一网址: <a target="_blank" href='https://bbs.zonghengtx.cn/thread-1944-1-1.html' title='Chevereto Nginx 伪静态Rewrite规则图床'>https://bbs.zonghengtx.cn/thread-1944-1-1.html</a></p> <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">不错 支持下 <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">真是 收益 匪浅 <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">路过,学习下 <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">帮你顶下哈!! <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">我是来刷分的,嘿嘿
页:
[1]