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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/ -------------------------------------------------------------------------- |