httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Content Negotiation/Type-Map Question
Date Thu, 25 Aug 2005 02:35:30 GMT
On 8/24/05, Christopher Parker <> wrote:
> I'd like to know if there's a way to make type-maps and the MultiViews
> option work side-by-side. I'd like to utilize both within the same
> directory. Right now, the only way I can access a resource via
> type-map is by specifying the .var extension in the URL, even though
> ".var" isn't part of the resource name. If I don't specify the .var
> extension in the URL, then MultiViews takes over.

Well, if you want apache to select a file whose extension you haven't
explicitly specified, then you need MultiViews.  Without multiviews,
apache has no way to find the .var file.

There are a number of options here.  One is to rename your .var file
to not have any extension (so that it will directly match the URL
rather than needing multiviews).  Then use something like
<FilesMatch ^[^.]+$>
SetHandler type-map
to mark all extension-less files as type-maps.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message