Настройка apache и awstats на ubuntu lts 16.04

Linux > Настройка apache и awstats на ubuntu lts 16.04
12.02.2018 12:16:26


Наиболее часто встречающиеся слова в статье:

[directory] [Security] [concerns] [provides] [worldwide] [everything] [Directory] [ Options] [ AllowOverride] [/Directory]


Статья:

Не забываем подключить модуль cgi.load
# This provides worldwide access to everything below the directory
# Security concerns:
#  * Raw log processing data is accessible too for everyone
#  * The directory is by default writable by the httpd daemon, so if
#    any PHP, CGI or other script can be tricked into copying or
#    symlinking stuff here, you have a looking glass into your server,
#    and if stuff can be uploaded to here, you have a public warez site!
<Directory /var/lib/awstats>
	Options None
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>
 
# This provides worldwide access to everything below the directory
# Security concerns: none known
<Directory /usr/share/awstats/icon>
	Options None
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>
 
# This provides worldwide access to everything below the directory
# Security concerns: none known
<Directory /usr/share/java/awstats>
	Options FollowSymLinks
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>
 
# This provides worldwide access to everything in the directory
# Security concerns: none known
Alias /awstats-icon/ /usr/share/awstats/icon/
 
# This provides worldwide access to everything in the directory
# Security concerns: none known
Alias /awstatsclasses/ /usr/share/java/awstats/
 
# This (hopefully) enables _all_ CGI scripts in the default directory
# Security concerns: Are you sure _all_ CGI scripts are safe?
Alias /cgi-bin/ /usr/lib/cgi-bin/
<Location "/cgi-bin/">
    Options +ExecCGI
	Require local
    Require ip 192.168.60.0/24 192.168.1.0/24 192.168.50.0/24
</Location>