[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:
- DocumentRoot "/var/www/htdocs"
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- Order deny,allow
- Deny from all
- </Directory>
- <Directory "/var/www/htdocs">
- #
- # Possible values for the Options directive are "None", "All",
- # or any combination of:
- # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
- #
- # Note that "MultiViews" must be named *explicitly* --- "Options All"
- # doesn't give it to you.
- #
- # The Options directive is both complicated and important. Please see
- # http://httpd.apache.org/docs/2.2/mod/core.html#options
- # for more information.
- #
- Options Indexes FollowSymLinks
- #
- # AllowOverride controls what directives may be placed in .htaccess files.
- # It can be "All", "None", or any combination of the keywords:
- # Options FileInfo AuthConfig Limit
- #
- AllowOverride None
- #
- # Controls who can get stuff from this server.
- #
- Order allow,deny
- Allow from all
- </Directory>
- <IfModule dir_module>
- DirectoryIndex index.html
- </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:
阅读(2990) | 评论(0) | 转发(0) |