httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stormy <storm...@stormy.ca>
Subject [users@httpd] locating cgi-bin
Date Mon, 08 Apr 2013 13:12:22 GMT
I'm missing something, probably simple, so assistance appreciated. Apache 
2.2.22 on Ubuntu 12.04(LTS) server. I have, for "site foo" which uses some 
Perl scripts:

     ScriptAlias /cgi-bin/ /var/www/foo/cgi-bin/
     <Directory /var/www/foo/cgi-bin/>
         AllowOverride None
         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
         AddHandler cgi-script .pl
         Order allow,deny
         Allow from all
     </Directory>

I have tried the ScriptAlias and the Directory with and without trailing 
slashes and double quotes, but user error: "The requested URL 
/cgi-bin/login.pl was not found on this server" and error.log gives: "[Mon 
Apr 08 12:28:40 2013] [error] [client 192.168.x.x] script not found or 
unable to stat: /usr/lib/cgi-bin/login.pl, referer: http://foo/"

Perl has an  @INC: /usr/lib/perl5 and there is an [empty] /usr/lib/cgi-bin/ 
-- which I don't want to use. Apache user is 'www-data' and foo is 
'drwxr-xr-x 5 root www-data 4096 Apr 3 22:51 foo'

Questions: can my ScriptAlias work? if not what EnvVar should I set and where?

Many tnx - Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message