httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: AddDescription
Date Mon, 11 Sep 1995 22:50:18 GMT

Close... the only documentation for AddDescription says that the "fileid" 
can be

  "a filename extension (like .html), a filename, a full real pathname to 
   a file on your system, or a wildcard pattern to match to filenames"

(http://hoohoo.ncsa.uiuc.edu/docs/setup/srm/AddDescription.html)

So I would expect (according to the second clause) to be able to use 
AddDescription in a .htaccess file to point to a file in the same 
directory, without having to give the full path (for portability 
reasons), but that doesn't work, although it does if I put a * 
before the filename of course, since that's a regexp which matches the 
full path.

I would +1 it with that caveat I suppose - a kludge would be to presume 
every fileid started with a "*"... :)

	Brian

On Mon, 11 Sep 1995, Rob Hartill wrote:
> This seems to bring AddDescription to life...
> 
> I'll add it to for_Apache_0.8.13
> 
> rob.
> 
> 
> 
> *** mod_dir.c.orig	Mon Sep 11 13:30:42 1995
> --- mod_dir.c	Mon Sep 11 13:38:46 1995
> ***************
> *** 330,335 ****
> --- 330,337 ----
>                       if(p->type == BY_TYPE) {
>                           if(!strcmp_match(content_type,p->apply_to))
>                               return p->data;
> +                     } else if (!strcmp_match(r->filename, p->apply_to)) {
> +                         return p->data;
>                       }
>                   } else {
>                       if(p->type == BY_ENCODING) {
> 

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/


Mime
View raw message