configuring cgi-bin using .htaccess
Posted
by
Alexandru
on Super User
See other posts from Super User
or by Alexandru
Published on 2011-06-10T17:29:34Z
Indexed on
2013/10/28
3:58 UTC
Read the original article
Hit count: 253
I'm trying to configure a directory as cgi-bin using .htaccess
, but when I try to access the executables, the files are downloaded. I'm using apache2.2. What is the problem?
My .htaccess
looks like:
# cat www/cgi-bin/.htaccess
Options +ExecCGI
AddHandler cgi-script cgi pl
File permissions are
# ls -1la www/cgi-bin/
total 60
drwxr-xr-x 2 root root 4096 iun 10 19:22 .
drwxr-xr-x 5 root root 4096 iun 10 19:18 ..
-rw-r--r-- 1 root root 46 iun 10 19:23 .htaccess
-rwxr-xr-x 1 root root 15358 iun 10 19:23 paperload.cgi
-rwxr-xr-x 1 root root 12728 iun 10 19:23 papers.cgi
-rwxr-xr-x 1 root root 12593 iun 10 19:23 paperview.cgi
© Super User or respective owner