Re: Apache and user cgi scripts
I have the following entries in access.conf:
<DirectoryMatch ^/home/.*/public_html>
Options SymLinksIfOwnerMatch Indexes
AllowOverride All
</DirectoryMatch>
<DirectoryMatch ^/home/.*/public_html/cgi-bin>
Options ExecCGI SymLinksIfOwnerMatch
AllowOverride None
AddHandler cgi-script .cgi .pl
</DirectoryMatch>
Hope this helps...
On Thu, Jul 22, 1999 at 03:36:32PM +0200, Robert Varga wrote:
>
> I have a problem with running cgi-scripts in user directories.
> They simply don't run, giving back a 403 Forbidden error message.
> However I can access files in there, without a problem.
>
> http://myserver.address/~robi/cgi-bin/proba.cgi
>
> I use slink, apache-1.3.3-7
>
> My home directory is:
>
> drwxr-xr-x 21 robi robi 3072 Jul 22 11:50 robi
>
> My public_html is:
>
> drwxr-xr-x 6 robi robi 1024 Jul 19 23:38 public_html
>
> My public_html/cgi-bin is:
>
> drwxr-xr-x 2 robi robi 1024 Jul 22 15:05 cgi-bin
>
> The public_html/cgi-bin directory contains:
>
> drwxr-xr-x 2 robi robi 1024 Jul 22 15:05 .
> drwxr-xr-x 6 robi robi 1024 Jul 19 23:38 ..
> -rwxr-xr-x 1 robi robi 27 Jul 19 23:39 .htaccess
> -rwxr-xr-x 1 robi robi 144 Jul 22 15:05 proba.cgi
>
> .htaccess in it contains:
>
> AddHandler cgi-script .cgi
>
> proba.cgi (which I tried to run) contains:
>
> #!/bin/sh
> echo Content-type: text/html
> echo
> echo "<HTML><HEAD><TITLE>Hello</TITLE></HEAD>"
> echo "<BODY>"
> echo "Hmm"
> echo "</BODY></HTML>"
>
> It runs fine if I change identity with su to www-data, and try to run the
> proba.cgi
>
>
> What can be the problem?
>
> Robert Varga
>
>
>
>
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
--
____________________________________________________________________________
Shao Zhang - Running Debian 2.1 ___ _ _____
Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _
University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` |
Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au |___/
_____________________________________________________________________________
Reply to: