apache og perl som cgi : hielfe

From: Sidsel Jensen (none@purple--hamster.dk.lh.bsd-dk.dk)
Date: Thu 19 Jul 2001 - 16:49:04 CEST


Date: Thu, 19 Jul 2001 16:49:04 +0200 (CEST)
From: Sidsel Jensen <none@purple--hamster.dk.lh.bsd-dk.dk>
To: <none@bsd-dk--bsd-dk.dk.lh.bsd-dk.dk>
Subject: apache og perl som cgi : hielfe


hejsa

Jeg har et ret irriterende problem, jeg kan ikke få perl til at virke som
cgi, under apache (apache-1.3.19). Det er ikke det globale cgi bibliotek
der skal slåes til men kun for en enkelt bruger.
Dette er ret vigtigt da jeg ikke vil tillade cgi globalt.

Min maskine er en alphabox
FreeBSD twostep.e-scape.dk 4.3-RC FreeBSD 4.3-RC #0: Fri Mar 30 15:47:07
CEST 2001 root@:/usr/obj/disk1/src/sys/GENERIC alpha

min /usr/local/etc/apache/httpd.conf
indeholder følgende :

<snip>
    ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
    #
    # "/usr/local/www/cgi-bin" should be changed to whatever your
ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "/usr/local/www/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

    # To use CGI scripts:
    #
    AddHandler cgi-script .cgi .pl

    # Added by SJ to allow .pl cgi scripts from user tw

    <Directory "/disk1/home/tw/public_html/cgi-bin">
        Options ExecCGI
        AllowOverride Options
    </Directory>
</snip>

filen hello.pl har r+x rettigheder
-rwxr-xr-x 1 tw tw 205 Jul 19 16:22 hello.pl

jeg får fejlmeddelelsen :

Forbidden
You don't have permission to access /~tw/cgi-bin/hello.pl on this server

HIELFE ?!
Hvad gør jeg galt ?

mvh. Sidsel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is the CEO the web equivalent of captain Ahab -
willing to sacrifice the entire crew in his mad
quest for the E-Whale ?
                                - NetSlaves
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2b30 : Wed 15 Nov 2006 - 18:24:12 CET