ViewerJS服务器拒绝连接

时间:2016-03-07 16:19:13

标签: php html cpanel web-hosting

noob question ...

我已将ViewerJS纳入我的网站

代码:

 <iframe src = "http://localhost/VADHOD//ViewerJS/#../pdf/UthMaio.pdf" width = "750" height='900' allowfullscreen webkitallowfullscreen></iframe>

它在XAMPP服务器上的localhost上正常工作

但是当我上传到我的托管服务提供商000webhost ...

它没有加载并显示

  

服务器拒绝连接

我是否需要在cPanel上以某种方式激活php,就像我在xampp控制面板中启动Apache服务一样?

2 个答案:

答案 0 :(得分:2)

问题在于您的链接网址...您已将其设置为localhost ..删除

<iframe src = "/ViewerJS/#../pdf/UthMaio.pdf" width = "750" height='900' allowfullscreen webkitallowfullscreen></iframe>

答案 1 :(得分:1)

您需要在此处检查/验证一些事项:

  • 您可以尝试将localhost替换为实际的IP地址或服务器 您与托管服务提供商的主机名/域名;

  • 您需要确保路径正确;

  • 请注意unix / linux中的文件夹和文件的名称(我假设你在Linux服务器上)路径区分大小写,大写字母很重要;