Plesk设置:找不到文件

时间:2018-09-18 05:49:16

标签: http-status-code-404 plesk-onyx

当我尝试访问Web服务器上不存在的文件时(通过使用https的浏览器访问),有时我只会收到消息“找不到文件”。作为唯一的反馈,对于其他URL,我得到一个HTML 404文档,如下所示:

  <!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>404 Not Found</title>
    <link rel="stylesheet" href="/error_docs/styles.css">
  </head>
  <body>
  <div class="page">
    <div class="main">
      <h1>Server Error</h1>
      <div class="error-code">404</div>
      <h2>Page Not Found</h2>
      <p class="lead">This page either doesn't exist, or it moved somewhere else.</p>
      <hr/>
      <p>That's what you can do</p>
      <div class="help-actions">
        <a href="javascript:location.reload();">Reload Page</a>
        <a href="javascript:history.back();">Back to Previous Page</a>
        <a href="/">Home Page</a>
      </div>
    </div>
  </div>
  </body>
  </html>

我没有设置.htaccess。在网络服务器上,我正在运行Plesk Onyx。我想知道当前行为在哪里设置。背后的规则是什么,它在哪里配置要显示两个内容中的哪一个。

0 个答案:

没有答案