You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/07/05 20:28:34 UTC
AddType...
I'm talking to a guy who wants to use Action to expand .html.gz files and
serve them up, but not do so to other kinds of .gz files. Is there some
fundamental reason that we can't do this (the problem is that you can't use
a '.' in an AddType)? Or is it just that its easier not to?
I've suggested that he call them .html-gz instead but it isn't very elegant.
Cheers,
Ben.
--
Ben Laurie Phone: +44 (181) 994 6435
Freelance Consultant and Fax: +44 (181) 994 6472
Technical Director Email: ben@algroup.co.uk
A.L. Digital Ltd, URL: http://www.algroup.co.uk
London, England.
Re: AddType...
Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Fri, 5 Jul 1996, Ben Laurie wrote:
> I'm talking to a guy who wants to use Action to expand .html.gz files and
> serve them up, but not do so to other kinds of .gz files. Is there some
> fundamental reason that we can't do this (the problem is that you can't use
> a '.' in an AddType)? Or is it just that its easier not to?
The reason is that the parser in mod_mime goes through filenames in
dot-seperated sections. i.e. if you have "foo.html.gz" it looks at
"html" and then "gz". It's pretty much neccessary to do it this way,
if you want to (as we do) allow filename extensions in any order and
any number of them. i.e. if you have "AddType whatever .html.gz", how
do you parse "foo.gz.en.html" (which is a perfectly legal way of
specifying a gzipped English HTML file).
--
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us> The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/