Ребят, ковыряю 14.04 сервер, как настроить Apache, чтобы отображалась страничка, а не содержимое файла index.cgi.
В частности речь о lightsquid (анализатор логов squid).
Добавил в apache2.conf, не хотит, добавляю в sites-available/000-default.conf, та же история.
Как будто не съедает опцию выполнения сценариев CGI.
Сценарии сделал исполняемыми chmod +x *.cgi
Владельца файлов сменил на www-data.
Шото я в замешательстве.
Alias /stats "/var/www/lightsquid"
<Directory /var/www/lightsquid/>
Options ExecCGI
AddHandler cgi-script .cgi
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
apache2.conf
ServerName localhost
Mutex file:${APACHE_LOCK_DIR} default
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
AllowOverride None
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Alias /stats "/var/www/lightsquid"
<Directory /var/www/lightsquid/>
Options +ExecCGI +FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride None
Order Allow,Deny
Allow from All
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Пока ковыряю, обнаружил что lightsquid уже есть в репах убунты!

sudo apt-cache show lightsquid
Package: lightsquid
Priority: extra
Section: universe/admin
Installed-Size: 305
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: TANIGUCHI Takaki <takaki@debian.org>
Architecture: all
Version: 1.8-4
Depends: perl, libtime-local-perl, libdbi-perl, libgd-gd2-perl, apache2 | httpd
Filename: pool/universe/l/lightsquid/lightsquid_1.8-4_all.deb
Size: 64644
MD5sum: 6bc706cc952d2ba08b7ee4dcd9a17cd4
SHA1: ebbc82f4a854f09eb591dd11b9796e607b4474fa
SHA256: 909f29fd074419a2f3ceb20549485537c11f81fe6d050c222a36c4168b5a8590
Description-en: Lite and fast log analizer for squid proxy
If you use SQUID, some time your want see how your user eat traffic.
Lightsquid analyses SQUID's log file. You could see graphical reports
through the web CGI. The reports show per user data and per site data.
It is easy to customize output HTML.
Description-md5: 0e088b5215832ae8860ffd012b174362
Homepage: http://lightsquid.sourceforge.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu