Welcome! Log In Create A New Profile

Advanced

nginx upload module bug? (proxy_temp_path ignored)

Wincent Colaiuta
April 29, 2009 05:16AM
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
Subject Author Posted

nginx upload module bug? (proxy_temp_path ignored)

Wincent Colaiuta April 29, 2009 05:16AM

Re: nginx upload module bug? (proxy_temp_path ignored)

Valery Kholodkov May 04, 2009 12:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready