httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Mahurin <dmahu...@dma.org>
Subject Re: Default Handler/Action
Date Fri, 23 Aug 2002 19:51:34 GMT
Joshua Slive wrote:

> Don Mahurin wrote:
>
> > Now, additionally, I want to associate files without extensions to use
> > myhandler. How do I do this?
> >
> > AddHandler myhandler ""  does not have any effect.
> > There appears to be no "DefaultHandler" or "DefaultAction" directive.
> > SetHandler sets it for every or no file extension. This is not what I
> > want.
> > DefaultType would work if there was a AddTypeHandler directive that tied
> > a Type to an Action.
> >
> > Any ideas?
>
> Try this:
>
> <FilesMatch ^[a-zA-Z0-9]*$>
> SetHandler myhandler
> </FilesMatch>
>
> This should send any filename consisting only of letters and numbers (ie
> no ".") to your handler.

Yes, except:

Starting httpd: Syntax error on line 635 of /etc/httpd/conf/httpd.conf:
<FilesMatch> cannot occur within <Location> section

And I don't want to change the default globally.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message