LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 626|回复: 0

看看这个Apache的配置问题

[复制链接]
发表于 2003-5-19 20:03:13 | 显示全部楼层 |阅读模式
运行./httpd configtest后提示:
Syntax error on line 101 of /etc/httpd/conf/access.conf:
Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module not included in the server configuration
access.conf 如下
##
## access.conf -- Apache HTTP server configuration file
##

# access.conf: Global access configuration
# Online docs at http://www.apache.org/

# This file defines server settings which affect which types of services
# are allowed, and in what circumstances.

# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).

# Originally by Rob McCool

# First, we configure the "default" to be a very restrictive set of
# permissions.

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.

# This should be changed to whatever you set DocumentRoot to.

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride AuthConfig
order deny,allow
allow from 202.96.144.83
deny from all
</Directory>

#  should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride AuthConfig
order deny,allow
allow from 202.96.144
deny from all
</Directory>

# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.

#<Location /server-status>
#SetHandler server-status

#order deny,allow
#deny from all
#allow from .your_domain.com
#</Location>

# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your_domain.com" to match your domain to enable.

#<Location /server-info>
#SetHandler server-info

#order deny,allow
#deny from all
#allow from .your_domain.com
#</Location>

# There have been reports of people trying to abuse an old bug from pre-1.1
# days.  This bug involved a CGI script distributed as a part of Apache.
# By uncommenting these lines you can redirect these attacks to a logging
# script on phf.apache.org.  Or, you can record them yourself, using the script
# support/phf_abuse_log.cgi.

<Location /cgi-bin/phf*>
order allow,deny
deny from all
ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
</Location>

# You may place any other directories or locations you wish to have
# access information for after this one.

<Directory "/home/cricket/public_html/cricket">
Options Indexes FollowSymLinks ExecCGI
AllowOverride AuthConfig
order deny,allow
allow from 61.141.23
deny from all
</Directory>

<Files *.cgi>
    SetHandler perl-script
     PerlHandler Apache::Registry
    Options ExecCGI
</Files>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表