mod_negotiation and differing MIME types

This is a discussion on mod_negotiation and differing MIME types within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm working on a new site on which I want to look at the preprocessed source a lot. I ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-23-2004
Kim Scarborough
 
Posts: n/a
Default mod_negotiation and differing MIME types

I'm working on a new site on which I want to look at the preprocessed
source a lot. I got tired of having to view it in the console window all
the time, so I had the idea to make an alias to the directory that
served up .html as text/plain:

Alias /foo-src /path/to/htdocs/foo
<Location /foo-src>
AddType text/plain html
</Location>

This actually works... or, it would work if I weren't using MultiViews
on folder foo. Right now, the published URL for a html file in directory
foo is <http://example.com/foo/bar>, which serves up bar.html. When I go
to <http://example.com/foo-src/bar.html>, it serves as text/plain, which
is what I want... but when I go to <http://example.com/foo-src/bar>, it
goes back to text/html.

This seems weird to me. Is mod_negotiation just looking at mime.types
and ignoring my AddType directive? The mod_negotiation page says that it
"effectively fakes up a type map which names all those files, assigning
them the same media types and content-encodings it would have if the
client had asked for one of them by name." But that's clearly not
happening here.

Is this a bug, and/or is there a different way I should be implementing
this?

--
--------------------------------------------------------------------------
Kim Scarborough http://www.unknown.nu/kim/
--------------------------------------------------------------------------
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0