Turn of gzip for two specific locations.
Igor Sysoev
is at rambler-co.ru
Thu Mar 8 09:21:21 MSK 2007
On Wed, Mar 07, 2007 at 05:26:21PM -0500, Wayne E. Seguin wrote:
> I've found a lovely issue with IE6 that doesn't allow .swf files to
> consume XML files that are compressed with gzip so I'm trying to
> figure out how to turn off gzip compression for two locations.
>
> One is anything under the /dashboard/gauge/ and the other is anything
> under /graphs/
>
> Here's my attempt which doesn't seem to be working:
>
> Attempt 1:
> server {
> ...
> location / {
> if ($uri ~* /dashboard/gauge*) {
> gzip off;
> }
> ...
>
> Attempt 2:
>
> server {
> ...
> location ^~ /dashboard/gauge* {
> gzip off;
> }
>
> location / {
> ...
>
> Any suggestions on how to do this?
The "if" has many limitation, so it's better to use
location /graphs/ {
gzip off;
...
}
location /dashboard/gauge/ {
gzip off;
...
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list