Forum: NGINX Nginx on Debian testing compiled without gzip_static?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D2d314970c6ac9aa0dd3f4ecf97bbe20?d=identicon&s=25 Dieter Zinke (Guest)
on 2009-01-25 11:19
(Received via mailing list)
I use nginx/0.6.32 from the Debian/testing repository, which might be
not the best choice. For example the mime.types file was missing.

I am trying to get nginx as a frontend for apache working. I am not
sure, but do those rules need the gzip_static module:

  # if the requested file exists, return it immediately
  if (-f $request_filename) {
  break;
  }

  set $supercache_file '';
  set $supercache_uri $request_uri;

  if ($request_method = POST) {
  set $supercache_uri '';
  }

  # Using pretty permalinks, so bypass the cache for any query string
  if ($query_string) {
  set $supercache_uri '';
  }

  if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
  set $supercache_uri '';
  }

  # if we haven't bypassed the cache, specify our supercache file
  if ($supercache_uri ~ ^(.+)$) {
  set $supercache_file
/wp-content/cache/supercache/$http_host/$1index.html;
  }

  # only rewrite to the supercache file if it actually exists
  if (-f $document_root$supercache_file) {
  rewrite ^(.*)$ $supercache_file break;
  }

  # all other requests go to Wordpress
  if (!-e $request_filename) {
  rewrite . /index.php last;
  }

When deleting those line in my default config, nginx and apache work
very well. But with those lines i am permanent redirected to Wordpress'
s main index.php.

Thus i had the idea that i need the gzip_static module, but the nginx
fetched from the Debian/testing repository seems not to be compiled with
gzip_static:

sudo /etc/init.d/nginx restart
Restarting nginx: 2009/01/25 10:39:00 [emerg] 6672#0: unknown directive
"gzip_static" in /etc/nginx/nginx.conf:23

Is that true? Or doesn' t gzip_static doesn' t exist any more what i
can' t read here http://wiki.codemongers.com/NginxHttpGzipStaticModule.
This topic is locked and can not be replied to.