求一个h5ai的完整nginx配置文件
index 加个 /_h5ai/public/index.php就行了啊 不给。字数补丁 nextcloud不好用吗?不方便吗?
yongs 发表于 2018-4-23 11:01
现在就搭建了nextcloud。
我想让路由器直接下载文件,可是nextcloud好像不能直接获取直链。 ...
可以的呀,我试过呀。 要多完整。。只简单的搭建了一个可以看文件的 这个这么简单了 index index.html index.htm index.php
/_h5ai/public/index.php;
yongs 发表于 2018-4-23 13:47
我的系统是ubuntu 16.04
apt 安装的nginx、musql、php
给一份完整的nginx配置文件呗 ...
centos系统,lnmp环境,我用的这个,可能还有其他问题,当时只是搭着尝试了一把,搭好了没怎么用还
[*]server
[*] {
[*] listen 80;
[*] #listen [::]:80;
[*] server_name www.xx.yy ;
[*] index index.html index.htm index.php default.html default.htm default.php /_h5ai/public/index.php;
[*] root/home/wwwroot/www.xx.yy;
[*]
[*] include other.conf;
[*] #error_page 404 /404.html;
[*]
[*] # Deny access to PHP files in specific directory
[*] #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
[*]
[*] include enable-php.conf;
[*]
[*] location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
[*] {
[*] expires 30d;
[*] }
[*]
[*] location ~ .*\.(js|css)?$
[*] {
[*] expires 12h;
[*] }
[*]
[*] location ~ /.well-known {
[*] allow all;
[*] }
[*]
[*] location ~ /\.
[*] {
[*] deny all;
[*] }
[*]
[*] access_log/home/wwwlogs/www.xx.yy.log;
[*] }复制代码
yongs 发表于 2018-4-23 13:49
我现在用的是小米路由器
小米路由器如何直接下载nextcloud中的文件呀?
和百度网盘一样的,有绝对地址,
yongs 发表于 2018-4-23 13:50
我是独立安装的n、m、p
直接拿来好像不行。
应该都是一样的吧。。。就是跟前面大佬们说的一样,加了个/_h5ai/public/index.php;这句,其他都是默认的诶
yongs 发表于 2018-4-23 13:51
怎么获取到绝对地址?
我以前试过是可以的,我现在环境删除了,不然早就和你讲了,哈哈
这几天我也要配置一个网盘,存一些ISO文件。还有图片
和你一样的需求,也要提供外面下载,因为ISO好多都是自己定制的,KVM上用的
今天没时间折腾了。。。。
页:
[1]