zoukankan      html  css  js  c++  java
  • wamp不显示文件图标

    wamp不显示文件图标

    效果如下图

    • 右键图片“在新的标签页打开图片”后会跳转到404页面,并显示The requested URL /icons/unknown.gif was not found on this server.

    解决方案

    • 去掉httpd.conf文件中Include conf/extra/httpd-autoindex.conf前面的'#'

    • 配置wampinapacheapache2.4.9confextra目录里httpd-autoindex.conf文件

    • 将文件中下面模块

      Alias /icons/ "c:/Apache24/icons/"
    
      <Directory "c:/Apache24/icons">
         Options Indexes MultiViews
         AllowOverride None
         Require all granted
      </Directory>
    

    修改为:

      Alias /icons/ "icons/"
    
      <Directory "icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
      </Directory>
    
    • 重启apache所有服务Restart All Services

    配置后文件图标正常,如下

    • 右键图片“在新的标签页打开图片”,会正常显示图片
    异乡小龟
  • 相关阅读:
    10 Iterable之遍历Map、Set、Array
    9 Map和Set
    8 循环
    5 字符串
    6 数组
    4 数据类型
    2 变量
    实现简单的邮件收发器(十二)
    10.19 初识django
    10.18 数据库之索引优化方案
  • 原文地址:https://www.cnblogs.com/scale/p/6688748.html
Copyright © 2011-2022 走看看