我有一个非常奇怪的情况,我的一个CSS 文件无法加载,我在 firebug 中看到 HTTP 403 错误。
我的树枝:
<head>
{% block head %}
<script type="text/javascript" src="/bundles/my/js/jquery.min.js"></script>
<script type="text/javascript" src="/bundles/my/js/jquery-ui.min.js</script>
<link rel="stylesheet" href="/bundles/my/css/Aristo/Aristo.css" />
<link rel="stylesheet" href="/bundles/my/css/style.css" />
{% endblock %}
</head>
我的文件结构:
我已经php app/console assets:install web --symlink
成功运行
app/console assetic:dump
返回:
Dumping all dev assets.
Debug mode is on.
注意: js/jquery.min.js、js/jquery-ui.min.js 和 css/style.css 加载正常,只有 Aristo/Aristo.css 报 HTTP 403 错误
编辑 GET http://my.local/bundles/my/css/Aristo/Aristo.css 响应消息:
Response Header
HTTP/1.1 403 Forbidden
Date: Thu, 04 Jul 2013 18:28:36 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 260
Keep-Alive: timeout=5, max=97
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
响应 HTML:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /bundles/my/css/Aristo/Aristo.css
on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at my.local Port 80</address>
</body></html>
任何人都可以建议吗?
谢谢