找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 20627|回复: 29

[N1盒子] docker 安装nextcloud 成功,外网访问提示通过不被信任的域名访问

[复制链接]
docker 安装nextcloud 成功,内网可以正常访问,有公网IP,所以端口转发,可以外网访问内网,但是外网访问nextcloud,提示:通过不被信任的域名访问






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
config.php文件在本地域下一行添加一行域名网址即可,百度都能搜索的,干嘛不直接百度

点评

我是小白,再请教下。 输入 config.php 命令 ,结果是 Could not find the database of available applications, run update-command-not-found as root to fix this config.php: command not found  详情 回复 发表于 2019-2-17 11:10
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
wangmucha 发表于 2019-2-17 10:28
config.php文件在本地域下一行添加一行域名网址即可,百度都能搜索的,干嘛不直接百度

我是小白,再请教下。 输入 config.php  命令 ,结果是 Could not find the database of available applications, run update-command-not-found as root to fix this
config.php: command not found
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

执行
nano /var/www/owncloud/config/config.php
array中添加你的域名进去,格式如下:
array(
    #根据自己的域名或本地IP添加到此集合中
    0 = > 'localhost',
    1 = > '你的域名',
)
Ctrl+X退出   y保存,回车

点评

输入第一行命令,然后是这样提示[ Directory '/var/www/owncloud/config' does not exist ] ,是不是文件夹文职不对  详情 回复 发表于 2019-2-17 22:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

suoyu999 发表于 2019-2-17 11:10
我是小白,再请教下。 输入 config.php  命令 ,结果是 Could not find the database of available appli ...

直接用winscp工具进去找到config.php文件打开,找到本地域名那行下面添加一行域名,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主发一下docker安装nextcloud的教程吧?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
发一下使用感受怎么样?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
莫大元帅 发表于 2019-2-17 12:17
执行
nano /var/www/owncloud/config/config.php
array中添加你的域名进去,格式如下:

输入第一行命令,然后是这样提示[ Directory '/var/www/owncloud/config' does not exist ]
,是不是文件夹文职不对

点评

抱歉那个路径是我装别的应用的,没仔细看。你找一下你的nextcloud的安装路径,把那个地址改成你的地址。下面的都大差不差,把域名加进去就可以了  详情 回复 发表于 2019-2-18 17:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

有公网IP好幸福啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

suoyu999 发表于 2019-2-17 22:35
输入第一行命令,然后是这样提示[ Directory '/var/www/owncloud/config' does not exist ]
,是不是文 ...

抱歉那个路径是我装别的应用的,没仔细看。你找一下你的nextcloud的安装路径,把那个地址改成你的地址。下面的都大差不差,把域名加进去就可以了

点评

好的,我试试  详情 回复 发表于 2019-2-18 21:22
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
莫大元帅 发表于 2019-2-18 17:06
抱歉那个路径是我装别的应用的,没仔细看。你找一下你的nextcloud的安装路径,把那个地址改成你的地址。 ...

好的,我试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主,docker安装nextcloud教程或者链接发一下?

点评

这个是安装方法 https://www.right.com.cn/forum/thread-352856-1-1.html  详情 回复 发表于 2019-2-22 20:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

array 哪里加了 1 域名 公网访问直接打不开了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
innerpeace 发表于 2019-2-21 11:27
楼主,docker安装nextcloud教程或者链接发一下?

这个是安装方法  https://www.right.com.cn/forum/thread-352856-1-1.html
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

docker里面修改要进到docker才能修改啊。。。。。。
config.php文件在docker里面,你直接输/var/www/owncloud/config/这个路径自然是不存在的!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 09:23

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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