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 Fri, 26 Aug 2005 13:08:58 GMT
On 8/25/05, Christopher Parker <christopher.c.parker@gmail.com> wrote:
> On 8/24/05, Joshua Slive <jslive@gmail.com> wrote:
> > 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.
> 
> This information is helpful! However, I guess what I'm trying to say
> is that I'd like it if MultiViews defaulted to a type-map before any
> other file. The original post I made at
> http://www.livejournal.com/community/apache/22990.html really explains
> a lot in terms of functionality that I need.
> 
> Is there a way to tell MultiViews to default to a type-map if one
> exists, and if not, then make up its own type-map? This is how I
> thought content negotiation was supposed to work...

No, as far as I know this is not possible.  But as I said, you can
accomplish exactly the same effect in some slightly-more-complicated
ways such as the above suggestion.

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