ben
ben

Reputation: 1462

Why does gzip_disable make nginx crash?

I've inspired my nginx configuration file from defunkt's conf file for unicorn but it seems that the line gzip_disable "MSIE [1-6]\."; makes everything crash. I get the error that this site is temporarily unavailable (served from nginx/html/50x.html). Commenting out the line makes everything work again, fiddling with the regexp doesn't change a thing.

I'm running nginx v.1.0.10 and ubuntu 11.10.

Any idea?

Upvotes: 5

Views: 9140

Answers (2)

Sharif
Sharif

Reputation: 373

Just wanted this to be here

gzip_disable "msie6"; is mentioned in official nginx docs here http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_disable as a special mask for regex MSIE [4-6]\, but works faster.

Upvotes: 3

Anatoly
Anatoly

Reputation: 15530

It's already about few years when Nginx API changed for this directive, it should be:

gzip_disable              "msie6";

Full stack Nginx+Unicorn optimized configuration can be found on the gist.

Upvotes: 6

Related Questions