locating cgi-bin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux