nginx upload module bug? (proxy_temp_path ignored)

Wincent Colaiuta win at wincent.com
Wed Apr 29 13:16:05 MSD 2009


I've just been testing out nginx (0.6.36) and the nginx upload module  
(2.0.9) and think I might have discovered a bug.

nginx without the upload module works.

But with the upload module it fails to launch with:

   2009/04/29 11:06:06 [emerg] 83898#0: mkdir() "/usr/local/nginx/ 
proxy_temp" failed (13: Permission denied)

This is with a simple conf file with no upload module directives added  
to it yet.

The conf file has proxy_temp_path lines like this inside the "server"  
block:

   proxy_temp_path /Users/wincent/src/tmp/proxy_temp;

So it looks like the upload module is trying to access the default  
proxy temp path before reading the "server" config. I tried moving the  
proxy_temp_path line out into the "http" block, but I get the same  
error.

So it appears that the module doesn't pay any attention to the  
proxy_temp_path configuration, which means that I can't use nginx as  
an unprivileged user (because the user can't write to the default  
proxy_temp_path).

The workaround is to just create the default proxy_temp_path.

But I am wondering if this is a bug. If the upload module wants to  
write to the proxy_temp_path, shouldn't it be respecting the  
proxy_temp_path settings in the conf file?

Cheers,
Wincent








More information about the nginx mailing list