On Wed, 3 Dec 2008, Dag Wieers wrote:
On Wed, 3 Dec 2008, Dag Wieers wrote:
On Wed, 3 Dec 2008, Filipe Brandenburger wrote:
> On Wed, Dec 3, 2008 at 14:28, Filipe Brandenburger
> <[EMAIL PROTECTED]>
> wrote:
>
> > AddType text/plain .txt.gz .log.gz
>
> Looking at Apache documentation, I believe what you need is:
>
> AddType text/plain .log
> AddEncoding x-gzip .gz
>
> From: http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addencoding
>
> By serving the content with the proper encoding, it's probably that
> search engines (Google) will index it correctly too.
But both are set by default. The .log files are opened as text/plain and
when gzipped, they are application/x-gzip.
I wonder whether this was functionality of the browser ? Or whether you
can instruct Apache to uncompress and send the content as text/plain. (But
that's cheating too as you download it with filenames .log.gz)
I was hoping for something like:
text/gzip
or
text/plain+gz
or
application/txt+gz
but none of that either:
http://www.iana.org/assignments/media-types/
And then I found this:
http://www.innerjoin.org/apache-compression/howto.html
I will package mod_gunzip and see how well it works. Then the other
problem is that the diretory index is referring the .log.gz files, and not
the .log files.
We'll see :)
--
-- dag wieers, [EMAIL PROTECTED], http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users