Chinaunix首页 | 论坛 | 博客
  • 博客访问: 123405
  • 博文数量: 34
  • 博客积分: 1201
  • 博客等级: 少尉
  • 技术积分: 365
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-21 08:56
文章分类

全部博文(34)

文章存档

2012年(1)

2011年(15)

2010年(18)

我的朋友

分类: LINUX

2011-11-03 12:13:38

Error:
[error] [client 10.224.100.12] Attempt to serve directory: /var/www/htdocs/
 
Situation:
centos5.3-64bit
apache2.2.21
php5.1.6

the display from browser:
#apachectl configtest
Syntax OK
check partial setting of httpd.conf as below:
  1. DocumentRoot "/var/www/htdocs"
  2. <Directory />
  3.     Options FollowSymLinks
  4.     AllowOverride None
  5.     Order deny,allow
  6.     Deny from all
  7. </Directory>

  8. <Directory "/var/www/htdocs">
  9.     #
  10.     # Possible values for the Options directive are "None", "All",
  11.     # or any combination of:
  12.     # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  13.     #
  14.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
  15.     # doesn't give it to you.
  16.     #
  17.     # The Options directive is both complicated and important. Please see
  18.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
  19.     # for more information.
  20.     #
  21.     Options Indexes FollowSymLinks
  22.     #
  23.     # AllowOverride controls what directives may be placed in .htaccess files.
  24.     # It can be "All", "None", or any combination of the keywords:
  25.     # Options FileInfo AuthConfig Limit
  26.     #
  27.     AllowOverride None
  28.     #
  29.     # Controls who can get stuff from this server.
  30.     #
  31.     Order allow,deny
  32.     Allow from all
  33. </Directory>

  34. <IfModule dir_module>
  35.     DirectoryIndex index.html
  36. </IfModule>

It seem the configure file has not any problem about display file list with httpd service

[Solution]:
#LoadModule autoindex_module /usr/lib64/httpd/modules/mod_autoindex.so
change to
LoadModule autoindex_module /usr/lib64/httpd/modules/mod_autoindex.so
Then restart httpd service.any problem please let me know.

the result from browser:

阅读(2941) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~