Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding. Gzip is based on ...
0
votes
1answer
26 views
NGINX + GZIP - Altering Vary header to include User-Agent
Currently, when nginx is set to gzip outbound content as requested by the client, the "gzip_vary on" setting will set the following header:
Vary: Accept-Encoding
We would like to modify this to ...
1
vote
2answers
58 views
I cant get mod_gzip to function properly
The pagespeed tool says
Compressing http://72.10.33.203/workspace/js/plugins.min.js could save 95.0KiB (66% reduction).
but when I test for GZIP it shows that it works.
I have my htaccess and conf ...
0
votes
0answers
13 views
The remote server returned an error: (500) Internal Server Error [migrated]
My xml http response is taking 150 Second to 200 Second for resolv this I try to gzip requst response but geting Error The remote server returned an error: (500) Internal Server Error.
Please Help ...
0
votes
0answers
48 views
Enabling HTTP Compression in WebSphere Application Server 7
I know the correct way of enabling gzip HTTP Compression for a WebSphere Application Server is to activate and configure the mod_gzip module in the IBM HTTP Server connected/installed in this ...
0
votes
0answers
15 views
How to Install libz.1.2.3.dylib on OS X 10.7? [migrated]
I want to install libz.1.2.3.dylib to use for building an iPhone app. OS X 10.7.4 has libz.1.2.5.dylib. But, the server I'm sending the gzipped data to has zlib 1.2.3 (used by Python). And, when it ...
0
votes
1answer
42 views
nginx configuring uwsgi and gzip buffers for different usage scenarios
I'm trying to configure two URL path groups for relatively different usage scenarios and resource consumption in nginx. Both are served by same uwsgi application.
Group 1: Regular HTML pages up to ...
0
votes
2answers
44 views
Apache 2.2 serving .html.gz content
How can I get Apache 2.2 on Centos to serve static .html.gz files from local disk to browsers, without them being prompted to download the file (ie - I want it rendered normally in the browser)?
0
votes
2answers
65 views
nginx + php-fpm + apc … compression?
I have a VPS running nginx 1.1.19, php-fpm 5.3.10, and APC 3.1.9. The server is primarily running PHP scripts (vB, SMF, IPB) I'm also using Cloudflare as a CDN if that matters.
From what I can tell, ...
0
votes
0answers
49 views
Looking for a Place for static website like Amazon S3 [closed]
I like to host some of my small static website on S3
because (pros):
very cheap
no maintenance need
reasonably fast (even without CDN)
every website can have a different IP, even in same zone, most ...
0
votes
1answer
58 views
Apache LocationMatch throws 500 and AddOutputFilterByType does nothing
I need to add below directives to apache. But I get 500 when I add these lines.
<LocationMatch "^/assets/.*$">
Header unset ETag
FileETag None
# RFC says only cache for 1 year
ExpiresActive On
...
0
votes
1answer
121 views
Is html or php header needed for gzip?
I use gzip module of nginx to compress documents. When gzip is enabled nginx will automatically send content-ending of gzip with HTTP headers, right?
Without adding any PHP header header() or HTML ...
1
vote
2answers
161 views
Why is IIS7 not compressing my static files?
I am trying to get IIS to compress jquery.js (and all other static files, but using jquery as the example here) on my localhost, but something goes wrong.
The funny part is that when I look in my ...
3
votes
2answers
67 views
Gzip mistake with directory
I accidently gzip -rv directory and now all individual files is in .gz format. How do I undo this and gunzip all .gz files within the directory?
And how do I just gzip this whole directory?
I tried ...
0
votes
1answer
57 views
Using AddEncoding x-gzip .gz without actual files
With Apache (2.2 and later) how can I achieve the following. I want to transparently compress using GZip encoding (not plain Deflate) the output when a certain file is queried with its name plus the ...
0
votes
2answers
65 views
How to zip the standard output of a process?
I have a process that is producing a big amount of log to the standard output in a short period of time. Is there a way to zip the standard output of my process to a file.
I am searching for ...
2
votes
2answers
144 views
How to avoid gzip on php resized images?
We should not gzip images, right? How do I avoid gzipping on images like this: img/sample.php?id=image_name.jpg can also be called like this img/sample.php?id=image_name.jpg&size=3 the actual ...
9
votes
4answers
350 views
How do I most efficiently store and serve 1,000,000+ small gziped files on a Linux web server?
I have large static content that I have to deliver via a Linux-based webserver. It is a set of over one million small, gzip files. 90% of the files are less than 1K and the remaining files are at most ...
2
votes
1answer
97 views
Apache deflate ignores javascript
I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with ...
4
votes
1answer
177 views
Why isn't the Nginx Gzip Precompression module working?
I'm currently trying to set up Nginx to serve all of my static files. Since they will not be changed very frequently at all I want to us the gzip_static module to allow me to pre-gzip copies of my ...
2
votes
1answer
108 views
Apache send HTML without comments
I have a problem with my Apache Webserver, I got 2 environments: Development and Production. Both have the same configuration, but the first one sends the HTMLs exactly as they've been created, the ...
1
vote
2answers
133 views
How to gzip logs created by rotatelogs
I'm using rotatelogs to create my daily apache logs in format host.<day>.<month>.<year>.access.log. Now I want to gzip and move log to different directory after it's been finished. ...
0
votes
1answer
37 views
same javascript file, but different file size depends on a server?
I have a weird problem.
I have two exact website on two servers - dev and qa.
The dev one shows that my javascript size is 100kb, but the qa says 400kb. When I save the script on my local, it is ...
0
votes
2answers
262 views
How to tell if mod_deflate is actually working?
I have put the following in my http.conf file:
# mod_deflate configuration
<IfModule mod_deflate.c>
# Restrict compression to these MIME types
AddOutputFilterByType DEFLATE text/plain
...
4
votes
1answer
317 views
How do I configure nginx to accept gzip requests?
I know that you can use nginx HttpGzipModule to gzip responses. Can you als use it to enable nginx to handle gzip-compressed requests, i.e. ones with the request header: Content-Encoding: gzip ?
...
1
vote
2answers
117 views
Disk cloning using dd thru gzip - how effective is it? [closed]
Is gzip or gzip -9 for a disk clone worth the extra time that it takes to perform the compression? Does it yield a significant saving?
There is very little information on how effective piping data ...
0
votes
1answer
93 views
IIS7 compression failing with “COMPRESSION_DISABLED” despite having the option enabled
I have been unable to get GZIP compression working on my IIS7.5 server. I have tried all the suggestions online, including here at ServerFault and no matter what, the trace always comes back stating ...
1
vote
1answer
39 views
Enabling gzip compression in apache2 web server
I am trying to enable the zgip compression in apache2 web server, a quick googling helped me to fetch some instructions and I got to know that I need to edit httpd.conf which is inside /etc/apache2/ ...
0
votes
1answer
116 views
nginx: gzip compression configured without error yet output is not compressed
After trying anything I could, the gzip compression in my nginx is still not working.
environment:
Ubuntu 11.04 with nginx ppa, with the latest release (1.0.8)
PHP5-FPM backend from package with ...
0
votes
3answers
184 views
zip does not work for big files
What is the best way to compress a file if it is more than 4 GB in size?
I am using the following for last several months.
mysqldump --all-databases | zip > mybackup.zip
Today I am got an ...
-1
votes
1answer
174 views
Grade F on Compress but gzip is running
i got a litte problem with gzip
YSlow says:
Grade F on Compress components with gzip
There are 5 plain text components that should be sent compressed
Page Speed says:
Enable ...
1
vote
0answers
326 views
Config NGINX to GZip Font Files? ( Different gzip_types for different directories)
SOLUTION: It turns out it is not my config / NGINX faults - my DNS provider, cloudflare, is preventing the fonts from being GZipped for some reason
I'm using NGINX with GZIP_Static module installed.
...
0
votes
1answer
137 views
Oops - how to undo gzip of entire web directory? [closed]
So.. yeah. I don't spend a lot of time on the linux command line and instead of making a zip file of the web directory, I gzipped everything in the web directory. What's the anecdote to stupidly ...
1
vote
1answer
127 views
Why does tar -c dir | pigz > /mnt/nfs/dir.tgz use network, then cpu in cycles instead of both at once (with one bottlenecking)
I want to transfer a multi-terabyte directory to an nfs mounted directory most efficiently over a 1Gbit network (probably the limiting factor)
3 options -
tar and compress in place, then copy
copy, ...
0
votes
1answer
101 views
Repeated unsuccessful gzip compression of my website's files
The site in question is
goinnativerecords.com
I've got a basic shared hosting account and my website is a little heavy on the javascript so I decided to compress with gzip.
Contacted my hosting, ...
0
votes
3answers
98 views
How to use GZip to create a .zip file
Is it possible to use GZip to create a .zip file? I've been Googling and can't find anything that leads me to believe this is possible
1
vote
2answers
134 views
`mod_deflate` is returning `Content-Encoding: gzip`. Is that normal?
mod_deflate is configured on my Apache 2.2 web server. But my response headers are showing gzip as the Content-Encoding instead of deflate:
HTTP/1.1 200 OK
Date: Mon, 26 Sep 2011 22:26:11 GMT
...
2
votes
2answers
76 views
Should I serve compressed PDFs?
I'd like to know if there's a general rule of thumb wheter to enable gzipping for PDF files or not. I use NGINX but I think this would be helpful for Apache users as well.
Thanks.
0
votes
2answers
164 views
CRC Failed, File is broken, using php system command to tar a directory
Can anybody see a problem with the below PHP code? Or have any ideas to troubleshoot a solution as to why whenever I download the backup file.tar.gz and try to open it using 7zip on windows... that I ...
0
votes
2answers
88 views
What reasons (if any) are there to *not* enable gzip compression for your web server?
Specifically I am working with IIS7, in case there are platform specific reasons, but I am curious in general.
I know gzip compression is more CPU intensive for both the server and the client, but it ...
1
vote
1answer
129 views
Turn off gzip compression for one virtual host
I'm running into a problem where I think PHP deprecation errors are causing the headers to be malformed, causing a 330 error. If I disable error reporting for E_DEPRECATION, the error disappears, so ...
1
vote
3answers
302 views
PHP content-length header not specifying size for my forced download
I am trying to allow our users to be able to download a zip file using a php force download. I was having trouble getting the download to finish and it turned out the zip file was getting gzipped and ...
0
votes
3answers
102 views
Uncompressing gzip file
I have compressed a folder using following command:
tar czvf arch.tar.gz dirname/
When I try to uncompress it using following command
tar xvfz arch.tar.gz
then it uncompress folder but contents ...
1
vote
1answer
89 views
Apache deflates .xml.gz files
I noticed an error in google webmaster tools regarding a gzipped version of a sitemap. Turns out the sitemap.xml.gz file is gzipped twice: one upon creation (as it should be) and another time when ...
0
votes
2answers
778 views
gunzip: invalid compressed data--format violated
Problem definition:
I transferred a tar.gz file from a Linux machine to a Windows partition.The Windows partition has mounted with the Linux server as cifs.
OS : Red Hat Enterprise Linux Server ...
0
votes
0answers
473 views
Java VM 1.6.0_26 crashes Tomcat 6.0.32 when HTTP compression set to on
We are running the 64-bit version of Java VM 1.6_06 together with Apache Tomcat 6.0.32 on a 64-bit Windows Server 2003.
After we installed the latest security updates this Wednesday to Windows the ...
2
votes
1answer
1k views
How can I enable GZIP compression in Jetty?
I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?
-1
votes
1answer
265 views
Unable to decompress a .gz file on centos. gunzip: filename.tar.gz: not in gzip format
I am trying to install the latest apache ant to centos. I did as follows:
wget http://ant.apache.org/bindownload.cgi/apache-ant-1.8.2-bin.tar.gz
gzip -d apache-ant-1.8.2-bin.tar.gz
and I get the ...
1
vote
2answers
55 views
Is it possible to store MySQL data as comressed?
Is it possible to store MySQL data compressed? Option for that in MySQL?
0
votes
1answer
298 views
Gzip Compression IIS7 with Proxy Not working
I have seen posts with GZIP compression not working on IIS7, but none seemed to help in my case.
I have a proxy server that sends the request to my website on IIS7.
I have the following in web.config ...
2
votes
2answers
180 views
Erratic gzip compression on IIS7.5
This is best demonstrated when we just try to request a single CSS file from our IIS server. Sometimes we get the whole uncompressed file back. We'll wait 5 seconds and refresh, then the CSS file is ...