Maxim,
Ok finally added the patch with the I believe the right stuff.
Attached is the patch and the log file.
I just ran "GET http://localhost:88/static"
-Yazz
--- nginx-0.8.5/src/http/modules/ngx_http_autoindex_module.c 2009-06-02
09:09:44.000000000 -0700
+++ nginx-0.8.5-patch/src/http/modules/ngx_http_autoindex_module.c 2009-07-16
15:57:15.000000000 -0700
@@ -277,8 +277,8 @@
break;
}
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "http autoindex file: \"%s\"", ngx_de_name(&dir));
+ ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "http autoindex file: \"%s\", type %d",
ngx_de_name(&dir), dir.type);
len = ngx_de_namelen(&dir);
On Jul 3, 2009, at 1:49 AM, Maxim Dounin wrote:
Hello!
On Fri, Jul 03, 2009 at 11:55:22AM +0800, Joshua Zhu wrote:
Hi Maxim!
Could you please compile nginx with the attached simple patch and
obtain debug log for autoindex request?
IMHO, the ngx_log_debug1 in your patch should be changed to
ngx_log_debug2 :)
Yes, you are right, I missed it. But it doesn't matter as long as
nginx
compiled --with-debug. And this in turn is required since I need
this patch just for more verbose debug log on particular system. :)