Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 I'm fairly certain it's related to that.

On our production site, that's not a problem, since we're not showing any errors anyway. But in our dev environment, I need to be able to see the errors in order to fix them.

We're using nginx with two different virtual hosts. What I would like to know is if there's a way to disable gzip compression on one of those virtual hosts, so that I can see whether or not that's the issue.

I'm not a server admin, I just play one on TV, so please go easy on me.

share|improve this question
up vote 2 down vote accepted

Under your

Server {

declaration, just put the line

gzip off;

Alternatively, you can put the same line under your

location / {

line, if you want to only cover part of the virtual host.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.