On 04/19/15 12:13, Ingo Schwarze wrote:
...
>> (waiting for a well-deserved "rtfm ...")
> 
> More like RTFS.  The source code of media_find() in httpd.c shows
> that "extension" simply means the last dot-separated component of
> the filename, or the whole filename in the absence of any dot.

Thanks!
As it turns out...for my use, that was very sufficient -- about 25
entries after the text/plain line took care of my needs (and should need
little management).

I am pretty sure I tried the "Whole filename" thing on nginx, and it
didn't work, so when I saw the "compatible with the format used by
nginx" in httpd.conf(5), I didn't test on httpd. :-/

>> (and grumpy about this CP/M-MSDOS concept of "extension" on Unix ...)
> 
> Maybe you should campaign for using file(1) instead.  Er, hmmm.
> Or maybe not...  :-/

file(1), no, though I'll admit it crossed my mind -- briefly.  I was
thinking more along the lines of globbing or (IFF it could be done
safely and efficiently) RegEx, or even significantly subsetted regex.

Nick.

Reply via email to