by zhengsenlin888 - Web开发 - 2011-12-19 14:02:53 阅读(833) 回复(0)
帮助文档里说:Indexes 如果要求映射到目录的 URL 和在该目录里没有 DirectoryIndex(例如,index.html),那么服务器将返回格式化的目录列表。 默认是返回列表的,这使得服务器上的文件很不安全。 请问: 如何设置httpd.conf,才能使实现禁止显示列表,出现无权浏览页面 我用的是apacheapache 2.0.58 根目录是d:\...\www
我安装的apache2.0.47版本,好像默认安装后,如果该目录中没有index.html页,就会将目录中的内容显示出来,怎样才能关闭这个功能呢? [ 本帖最后由 HonestQiao 于 2005-12-18 00:58 编辑 ]
在arm开发板上安装了一个apache+php,不能使用,现象如下:
1.不加载libphp5.so的时候可以正常使用,
2.加载libphp5.so的时候,可以显示主目录下的内容,但是显示不了文件,
如图:
点击a.html的时候就
有人知道这是怎么回事吗?????
httpd.conf:[code]ServerRoot "/usr/apache"
PidFile "/var/log/apache/apache.pid"
LockFile "/var/log/apache/apache.lock"
Listen 80
如果列表中的文件长度不一 ,属性中的 last modified 和 file size 就不不能对齐显示。。
会根据文件名的长度 错位 ,非常难看。
我想不管last modified 和 file size 显示的值是对齐的,如何设置了。
我的httpd.conf 文件
系统提示: Error: Unexpected output from cvs co: cvs [checkout aborted]: Absolute module reference invalid: `/project1/pbad.qweSys' Check whether the directory /home/cvsroot/CVSROOT exists and the script has write-access to the CVSROOT/history file if it exists. The script needs to place lock files in the directory the file is in as well.
apache配置mod_status 要启用 server-status 必须首先加载 server-status 模块,你可以用以下命令查看是否已经加载了模块: /usr/local/apache/bin/httpd -l | grep mod_status.c 如果没有安装这个模块,那么就需要您重新编译这个模块了,进入 apache 的源码目录: cd /usr/local/src/httpd-2.2.14/modules/generators /usr/local/apache/bin/apxs -cia mod_status.c 这样模块就编译好了。查看一下 apache 的配置文件...