Re: [users@httpd] Content Negotiation/Type-Map Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/24/05, Christopher Parker <christopher.c.parker@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux