阿帕奇 - 如何重写的/图标索引? [英] apache - how to override index of /icons?

查看:153
本文介绍了阿帕奇 - 如何重写的/图标索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这一点,这是一种有趣的;当你,如果你的浏览器指向host.com/icons名称的目录图标在您的主机的根目录,然后,Apache不从该目录中读取,并显示您的公共的清单域图标

I wasn't aware of this, and it is kind of funny; when you name a directory icons in the root of your host, then if you point your browser to host.com/icons, apache does not read from that directory and shows you a listing of Public Domain Icons.

我添加了一个的图标的目录根目录并放置在该目录中的文件key.png,但在访问了404图像效果我试图找到,如果/当本已被记录,以及如何它可以被关闭。我什么也没有发现。可能有人提供了一个指针?

I added an icons directory to the root and placed a key.png file in that directory, yet accessing that image results in 404. I tried to find if/where this has been documented and how it could be turned off. I found nothing. Could someone provide a pointer?

P.S。我使用的XAMPP 1.7.3基本上是一个WAMP并有阿帕奇2.2.14

P.S. I am using XAMPP 1.7.3 which basically is a WAMP and has Apache 2.2.14

编辑结果
Aparently大量的现场服务器已经此开启和指数/图标可以看到<一个href=\"https://www.google.com/search?as_q=&as_epq=%2Ficons&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=&as_occt=url&safe=images&tbs=&as_filetype=&as_rights=&gws_rd=ssl#as_qdr=all&q=%22Index%20of%20%2Ficons%22\"相对=nofollow>很多地方的。

推荐答案

我假设你有你的httpd.conf中的别名。

I'd assume that you have an alias within your httpd.conf.

我不熟悉的XAMPP的配置文件或者他们的位置(谷歌表明,它可能是在\\ XAMPP \\ apache的\\的conf \\ httpd.conf文件),但我建议你在寻找类似下面的一行:

I'm not familiar with XAMPP's config files or their location (google suggests it's probably in \xampp\apache\conf\httpd.conf) but I'd suggest you're looking for a line like the following:

Alias /icons/ /usr/local/apache/icons/

请参阅 http://httpd.apache.org/docs/current/mod /mod_alias.html 获取更多信息。

编辑:
XMAPP网站,你需要检查 \\ XAMPP的\\ apache的\\的conf \\ httpd.conf文件额外的子文件夹。

According to XMAPP site, you need to check \xampp\apache\conf\httpd.conf and the extra subfolder.

这篇关于阿帕奇 - 如何重写的/图标索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆