httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: Default Handler/Action
Date Fri, 23 Aug 2002 18:49:34 GMT
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.

Joshua.



---------------------------------------------------------------------
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