ONLYOFFICE DocumentServer无法启动错误网关超时错误的PHP示例

时间:2019-05-26 19:40:23

标签: php mysql postgresql onlyoffice

我安装了ONLYOFFICE DocumentServer,以使用PHP将其集成到我的本地网站中。我按照ONLYOFFICE Documentantion for PHP.中的说明下载了PHP Example,我的本地服务器使用端口8500,而DocumentServer中的nginx服务器占用了端口8083。在本地站点的PHP Example中,我配置了如下网址:

$GLOBALS['DOC_SERV_CONVERTER_URL'] = "https://documentserver/ConvertService.ashx";
$GLOBALS['DOC_SERV_API_URL'] = "https://documentserver/web-apps/apps/api/documents/api.js";
$GLOBALS['DOC_SERV_PRELOADER_URL'] = "https://documentserver/web-apps/apps/api/documents/cache-scripts.html";
$GLOBALS['EXAMPLE_URL'] = "http://localhost:8083/example/";

当我尝试启动ONLYFFICE时,http://localhost:8083/example/网址显示在地址栏上,需要一分钟,并显示状态码504错误的网关超时。 示例位于我的本地网站上。下面是超时错误的图像 Bad Gateway Timeout Error

如果我将URL更改为“ http://localhost:8083/welcome/”,则会显示欢迎页面,因为它位于DocumentServer文件夹内。 以下是欢迎页面图像: Welcome page

我尝试用不同的配置更改本地端口,但没有成功。

0 个答案:

没有答案