如何重写nextcloud的网址

时间:2019-10-23 16:32:21

标签: mod-rewrite nextcloud

我已经安装了LAMP以及安装了nextcloud 16和17的docker基础设施。基于域,Apache将请求重定向到特定目录,该目录将在nextcloud.log中(而不是在Apache中)产生500错误:

错误消息是:

  

{“ reqId”:“ 3Kfv593PUs4Kc43ybuXH”,“级别”:3,“时间”:“ 2019-10-23T16:09:02 + 00:00”,“ remoteAddr”:“ 172.18.0.2”,“用户“:”-“,” app“:”索引“,”方法“:” GET“,” url“:” / index.php“,”消息“:{” Exception“:” Exception“,”消息“ :“   脚本无法处理请求的uri(/)   '/domains/nextcloud.domain.com/index.php')“,”代码“:0,”跟踪“:[{”文件“:” / www / apps / nextcloud-16.0.5 / lib / base.php “,” line“:918,” function“:” getRawPathInfo“,” class“:” OC \ AppFramework \ Http \ Request“,” type“:”->“,” args“:[]},{” file “:” / www / apps / nextcloud-16.0.5 / index.php“,” line“:42,” function“:” handleRequest“,” class“:” OC“,” type“:” ::“, “ args”:[]}],“文件”:“ / www / apps / nextcloud-16.0.5 / lib / private / AppFramework / Http / Request.php”,“行”:780,“ CustomMessage”:“- -“},” userAgent“:” Mozilla / 5.0   (X11; Linux x86_64)AppleWebKit / 537.36(KHTML,例如Gecko)   Chrome / 77.0.3865.120 Safari / 537.36“,”版本“:” 16.0.5.1“}

.htaccess中的重写规则:

int mid = (low + high) >>> 1;

0 个答案:

没有答案