需求:
1、PHP空间,PHP 5.6+ 打开curl支持
2、onedrive 账号 (个人、企业版或教育版/工作或学校帐户)
3、oneindex 程序
安装:
网站根目录下
git clone -b master https://github.com/donwa/oneindex.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard
chmod -R 755 config/
chmod -R 755 config/base.php
chmod -R 755 cache/
chown -R www:www *
现在可以访问网站配置了。
去掉链接中的 /?/
需要添加apache/nginx/iis的rewrite的配置文件
参考程序根目录下的:.htaccess或nginx.conf或Web.config
//在config/base.php 中
‘root_path’ => ‘?’
改为
‘root_path’ => ”
nginx图片404问题,参考https://github.com/donwa/oneindex/issues/14
设置nginx伪静态
location / {
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)