Apache2 在centos 7.2的此服务器上找不到请求的URL/awstats/awstats.pl

Apache2 在centos 7.2的此服务器上找不到请求的URL/awstats/awstats.pl,apache2,chef-infra,cookbook,test-kitchen,awstats,Apache2,Chef Infra,Cookbook,Test Kitchen,Awstats,我需要帮助解决我在访问awstats/awstats.pl时遇到的awstats问题。下面是当前的awstats.conf文件 这是我在access.log上看到的 我试着用谷歌搜索可能的解决方案,但不幸的是,也出现了同样的错误 我真的需要你们的帮助,伙计们:非常感谢那些能帮我解决这个错误的人,我被困在这部分了 这是我的厨师为awstats做的食谱 我的队友解决了这个问题,它完全是关于apache状态的感谢大家努力解决这个问题。你好 为什么是chef标签,这个问题与apache有关,如果有ch

我需要帮助解决我在访问awstats/awstats.pl时遇到的awstats问题。下面是当前的awstats.conf文件

这是我在access.log上看到的

我试着用谷歌搜索可能的解决方案,但不幸的是,也出现了同样的错误

我真的需要你们的帮助,伙计们:非常感谢那些能帮我解决这个错误的人,我被困在这部分了

这是我的厨师为awstats做的食谱
我的队友解决了这个问题,它完全是关于apache状态的感谢大家努力解决这个问题。你好

为什么是chef标签,这个问题与apache有关,如果有chef参与,请提供一些详细信息,展示您的食谱?创建配置文件后是否重新启动了apache?是的,这涉及到chef。是的,我已经在创建配置后重新启动了apache。下面是我的awstats配方。@Tensibai我已经附上了配方。apache错误日志中没有任何内容?这是我的错误日志
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"

<Directory "/usr/share/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<Directory "/usr/share/awstats/wwwroot/cgi-bin/">
    DirectoryIndex awstats.pl
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    Options +ExecCGI
</Directory>

# Additional Perl modules
<IfModule mod_env.c>
    SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
</IfModule>
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
headers_module (shared)
limitipconn_module (shared)
log_config_module (shared)
logio_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
perl_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
systemd_module (shared)
unixd_module (shared)
php5_module (shared)
"GET /awstats/awstats.pl HTTP/1.1" 404 216 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36"
include_recipe "yum-epel"
include_recipe "awstats"

%w(apachetraffic).each do |rule|
    iptables_rule rule do
        action :enable
    end
end

%w(awstats perl-Geo-IP).each do |pkg|
    package "#{pkg}" do
        action [:install]
    end
end

directory "#{node['awstats']['db_dir']}" do
  action :create
end

template "#{node['apache']['dir']}/conf.d/awstats.conf" do
  source "awstats/awstats.conf.erb"
    owner "root"
    group "root"
    mode 0644
    notifies :restart, 'service[apache2]', :delayed
end

# template "#{node['apache']['dir']}/conf-available/awstats.conf" do
#   source "awstats/awstats.conf.erb"
#   owner "root"
#   group "root"
#   mode 0644
#   notifies :restart, 'service[apache2]', :delayed
# end

template "#{node['awstats']['config_dir']}/awstats.#{node['awstats'] ['http_config']}.conf" do
    source "awstats/awstats.http.erb"
    owner "root"
    group "root"
    mode 0644
    variables(
        :logfile => node["awstats"]["logfile"],
        :site_domain => node["awstats"]["site_domain"],
        :db_dir => node["awstats"]["db_dir"],
        :geo_ip_dir => node["awstats"]["geo_ip_dir"]
    )
    notifies :restart, 'service[apache2]', :delayed
end

if node["awstats"]["has_ftp"]
    template "#{node['awstats']['config_dir']}/awstats.#{node['awstats']['ftp_config']}.conf" do
        source "awstats/awstats.ftp.erb"
        owner "root"
        group "root"
        mode 0644
        variables(
            :logfile => '/var/log/xferlog',
            :site_domain => node["awstats"]["site_domain"],
            :db_dir => node["awstats"]["db_dir"],
            :geo_ip_dir => node["awstats"]["geo_ip_dir"]
        )
        notifies :restart, 'service[apache2]', :delayed
    end
end