httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] Core dump when DocumentRoot is a CGI
Date Sun, 09 Feb 1997 04:27:54 GMT
+1 on Ben's patch.

I seem to be able to get the behaviour required by using "ScriptAlias /
/home/www/cgi-bin/printenv/" for example (the trailing / is required).  If
others thing that's fine then please forward that suggestion to
geddis@tesserae.com. 

Dean

On Sat, 8 Feb 1997, Ben Laurie wrote:

> >   * CGI script as documentroot works in 1.1.1, not 1.2b6 [geddis@tesserae.com]
> >     Message-ID: <Pine.BSF.3.91.970203113114.925A-100000@localhost.imdb.com>
> 
> This patch fixes the important half of the bug:
> 
> Index: util_script.c
> ===================================================================
> RCS file: /export/home/cvs/apache/src/util_script.c,v
> retrieving revision 1.42
> diff -c -r1.42 util_script.c
> *** util_script.c       1997/02/07 01:27:07     1.42
> --- util_script.c       1997/02/08 17:09:40
> ***************
> *** 223,228 ****
> --- 223,231 ----
> 
>       while (lu-- && lp-- && uri[lu] == path_info[lp]);
> 
> +     if(lu == -1)
> +       lu=0;
> +
>       while (uri[lu] != '\0' && uri[lu] != '/')
>         lu++;
> 
> I have no opinion about the other half - I suspect that fixing it is rather
> more effort than we care to expend (it is a warning that the DocumentRoot does
> not exist).
> 
> Cheers,
> 
> Ben.
> 
> -- 
> Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
> Freelance Consultant and  Fax:   +44 (181) 994 6472
> Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
> A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
> London, England.          Apache-SSL author
> 


Mime
View raw message