Welcome! Log In Create A New Profile

Advanced

Re: How to turn off gzip compression for SSL traffic

August 19, 2013 12:44AM
On Aug 18, 2013, at 14:27 , howard chen wrote:

> Hi,
>
> Thanks for the insight.
>
> Finally I solved by:
>
> if ($scheme = https) {
> gzip off;
> }

This does not work on server level. And on location level it may work in wrong way.

> Separating into two servers require to duplicate the rules like rewrite, which is cumbersome.

I believe that dual mode server block may be subject to vulnerabilities due to site map,
so BREACH is the least of them.


--
Igor Sysoev
http://nginx.com/services.html

> On Sat, Aug 17, 2013 at 8:43 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> On Aug 17, 2013, at 8:59 , howard chen wrote:
>
>> Hi,
>>
>> As you know, due the breach attack (http://breachattack.com), HTTP compression is no longer safe (I assume nginx don't use SSL compression by default?), so we should disable it.
>
> Yes, modern nginx versions do not use SSL compression.
>
>> Now, We are using config like the following:
>>
>> gzip on;
>> ..
>>
>> server {
>> listen 127.0.0.1:80 default_server;
>> listen 127.0.0.1:443 default_server ssl;
>>
>>
>>
>> With the need to split into two servers section, is it possible to turn off gzip when we are using SSL?
>
>
> You have to split the dual mode server section into two server server sections and set "gzip off"
> SSL-enabled on. There is no way to disable gzip in dual mode server section, but if you really
> worry about security in general the server sections should be different.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to turn off gzip compression for SSL traffic

howard chen August 17, 2013 01:00AM

Re: How to turn off gzip compression for SSL traffic

Igor Sysoev August 17, 2013 08:46AM

Re: How to turn off gzip compression for SSL traffic

howard chen August 18, 2013 06:28AM

Re: How to turn off gzip compression for SSL traffic

Bob S. August 18, 2013 09:04AM

Re: How to turn off gzip compression for SSL traffic

Igor Sysoev August 19, 2013 12:44AM

Re: How to turn off gzip compression for SSL traffic

itpp2012 August 18, 2013 01:09PM

Re: How to turn off gzip compression for SSL traffic

Jonathan Matthews August 18, 2013 01:16PM

Re: How to turn off gzip compression for SSL traffic

Adie Nurahmadie August 18, 2013 01:48PM

Re: How to turn off gzip compression for SSL traffic

B.R. August 18, 2013 02:58PM

Re: How to turn off gzip compression for SSL traffic

openletter August 18, 2013 03:34PM

Re: How to turn off gzip compression for SSL traffic

openletter August 18, 2013 03:38PM

Re: How to turn off gzip compression for SSL traffic

itpp2012 August 18, 2013 04:48PM

Re: How to turn off gzip compression for SSL traffic

B.R. August 18, 2013 05:14PM

Re: How to turn off gzip compression for SSL traffic

Igor Sysoev August 19, 2013 12:44AM

Re: How to turn off gzip compression for SSL traffic

B.R. August 19, 2013 01:58AM

Re: How to turn off gzip compression for SSL traffic

Igor Sysoev August 19, 2013 02:06AM

Re: How to turn off gzip compression for SSL traffic

B.R. August 19, 2013 11:48AM

Re: How to turn off gzip compression for SSL traffic

rmalayter August 20, 2013 05:12PM

Re: How to turn off gzip compression for SSL traffic

B.R. August 20, 2013 06:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready