0

我有一个网页,当我使用 Web 浏览器在本地访问它时,它显示得很好,只是打开 index.html,但是当我将它复制到 apache 中的 htdocs 中并访问它时显示得不好。

我在 errors.log 中有以下错误:

[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program  Files/Apache2.2/htdocs/chorus-theme/images/chorus/tab-round-left3.gif, referer: http://localhost:8080/TCS/group/guest/default.htm
[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache2.2/htdocs/chorus-theme/images/chorus/tab-round-right3.gif, referer: http://localhost:8080/TCS/group/guest/default.htm
[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache2.2/htdocs/language, referer: http://localhost:8080/TCS/group/guest/default.htm
[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache2.2/htdocs/language, referer: http://localhost:8080/TCS/group/guest/default.htm
[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache2.2/htdocs/language, referer: http://localhost:8080/TCS/group/guest/default.htm
[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache2.2/htdocs/language, referer: http://localhost:8080/TCS/group/guest/default.htm
[Thu Aug 16 16:18:49 2012] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache2.2/htdocs/language, referer: http://localhost:8080/TCS/group/guest/default.htm

谁能帮忙,

谢谢,

尼古拉斯·莫让

好的,我得到了答案,这里是:

该错误来自Apache无法解释以下链接的事实:

日志中的错误是路径不好:

而不是拥有 /chorus-theme,我应该拥有 ../../chorus-theme

4

1 回答 1

0

在您的 HTML 和 CSS 中,将路径更改为

/合唱主题/图像...

/语....

看起来您正在尝试链接到计算机文件系统中的图像和文件,但是

于 2012-08-16T15:06:41.527 回答