Problem with awstats since update to apache 2.4

Xavier xavier at groumpf.org
Thu Oct 10 17:53:12 UTC 2019


Hello folks,

I know, I should have this fixed a long time ago, but I procrastinated.
Now that I have a couple of hours free, I try to make it work again.

Basically since upgrade from apache 22 to 24 Awstats insists for
downloading the page (perl source) instead of displaying it.

My configuration :

> <VirtualHost _default_:80>
> 	ServerAdmin	root
> 	ServerName	awstats.groumpf.org
> 	ServerAdmin	root
> 
> 	CustomLog /var/log/stats.groumpf.org_accesslog combined
> 	ErrorLog /var/log/stats.groumpf.org_errorlog
>  
> 	Alias /awstatsclasses "/usr/local/ww/awstats/classes/"
> 	Alias /awstatscss "/usr/local/www/awstats/css/"
> 	Alias /awstatsicons "/usr/local/www/awstats/icon/"
> 	ScriptAlias /awstats/ "/usr/local/www/awstats/cgi-bin/awstats.pl"
> 	AddHandler cgi-script .cgi
> 
> 	<Directory "/usr/local/www/awstats">
> 		AllowOverride None
> 		Require ip 192.168.100.0/24
> 	</Directory>
> 	
> 	<Directory "/usr/local/www/awstats/cgi-bin">
> 		DirectoryIndex awstats.pl
> 		Options +ExecCGI
> 		Require ip 192.168.100.0/24
> 	</Directory>
> 
> </VirtualHost>

Apache modules loaded :

> [root at numenor modules.d]# apachectl -M
> Loaded Modules:
>  core_module (static)
>  so_module (static)
>  http_module (static)
>  authn_file_module (shared)
>  authn_core_module (shared)
>  authz_host_module (shared)
>  authz_groupfile_module (shared)
>  authz_user_module (shared)
>  authz_core_module (shared)
>  access_compat_module (shared)
>  auth_basic_module (shared)
>  reqtimeout_module (shared)
>  filter_module (shared)
>  mime_module (shared)
>  log_config_module (shared)
>  env_module (shared)
>  headers_module (shared)
>  setenvif_module (shared)
>  version_module (shared)
>  mpm_prefork_module (shared)
>  unixd_module (shared)
>  status_module (shared)
>  autoindex_module (shared)
>  dir_module (shared)
>  alias_module (shared)
>  maxminddb_module (shared)
>  php7_module (shared)
>  ssl_module (shared)
>  socache_shmcb_module (shared)
>  perl_module (shared)
>  cgid_module (shared)
>  cgi_module (shared)
>  rewrite_module (shared)


Where is my mistake ?

Thanks in advance

Regards,

Xavier

-- 
Xavier Humbert - sysadmin & network engineer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20191010/c3cac462/attachment.sig>


More information about the freebsd-ports mailing list