Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.