dongxing6802 2014-07-16 13:49
浏览 95
已采纳

Bootstrap 3 glyphicons被禁止403

I am using Nette Framework 2.2.1 and BootStrap 3 on Wamp 2.5 (Win7). I am not able to load glyphicons in browser (error 403 Forbidden).

what browser sees enter image description here

all needed fonts are in folder C:\wamp\www ette\www\fonts\

.htaccess is located in C:\wamp\www ette\www\ with content

<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

# enable cool URL
<IfModule mod_rewrite.c>
    RewriteEngine On
    # RewriteBase /

    # prevents files starting with dot to be viewed by browser
    RewriteRule /\.|^\. - [F]

    # front controller
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule !\.(eot|svg|ttf|woff|pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
</IfModule>

C:\wamp\www ette\www\bootstrap.min.css contains

@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}

Apache error log:

[Wed Jul 16 11:55:01.004757 2014] [core:error] [pid 3812:tid 788] (OS 5)Access is denied. : [client 127.0.0.1:52031] AH00132: file permissions deny server access: C:/wamp/www/nette/www/fonts/glyphicons-halflings-regular.svg, referer: http://www.nette.local/arts/porta-quis-ligula

I tried to set all permissions for user everyone to folder fonts, but its not working anyway.

  • 写回答

2条回答 默认 最新

  • duanji1026 2014-07-23 22:17
    关注

    Check that your font files are readable by the user apache is running as.

    It's important that the font files themselves be readable, in addition to the directory they are in.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
  • ¥15 NX MCD仿真与博途通讯不了啥情况
  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置