httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Content Negotiation/Type-Map Question
Date Thu, 25 Aug 2005 02:35:30 GMT
On 8/24/05, Christopher Parker <christopher.c.parker@gmail.com> 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
</FilesMatch>
to mark all extension-less files as type-maps.

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