Nginx on Debian testing compiled without gzip_static?

Dieter Zinke dieterzinke at
Sun Jan 25 13:08:02 MSK 2009

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) {
	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


More information about the nginx mailing list