[Techtalk] Apache 2.4.7 on Ubuntu Shows Source of CGI Script
Kai MacTane
kai at mactane.org
Sun Mar 29 21:25:53 UTC 2015
Hi. I have Apache 2.4.7 installed as part of my Ubuntu 14.04.1 LTS setup.
I have an old Perl script, tecindo.cgi. The file is mode 755. When I go
to kagan.mactane.org/software/archives/quenya/tecindo.pl it just shows
me the source code.
In /etc/apache2/sites-available/mactane.conf, I have:
<Directory /home/kmactane/website/live/software/archive/quenya>
Options Indexes Includes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
The cgi module is actiavated; there is a symlink from
/etc/apache2/mods-enabled/cgi.load to ../mods-available.cgi.load, and
a2enmod agrees it's enabled:
root at finrod:/etc/apache2/mods-enabled# a2enmod cgi
Module cgi already enabled
root at finrod:/etc/apache2/mods-enabled#
Loading the URL causes a normal log entry in access_log, and nothing in
error_log:
192.168.1.1 - - [29/Mar/2015:14:26:05 -0700] "GET
/software/archives/quenya/tecindo.cgi HTTP/1.1" 200 28006 "-"
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0"
Everything I can find by web-searching just says to enable the CGI
module, but I've already got it enabled. Can anyone help?
--
Kagan MacTane
More information about the Techtalk
mailing list