am using apache2 on debian.
i added these two lines into my apache2.conf
Code:
AddHandler cgi-script .pl
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
and in /var/www/cgi-bin/ i put the following little hello world file
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><h1>Hello World</h1></html>\n";
but when i try localhost/cgi-bin/hello.pl in my browser it says it cant find
anything. i have also tried
chmod -R 755 cgi-bin
but still doesn't work