Welcome! Log In Create A New Profile

Advanced

Re: nginx create directories

June 08, 2009 02:26PM
On Mon, Jun 08, 2009 at 05:51:32PM +0200, J?r?me Loyet wrote:

> Hi igor, I have 2 questions:
>
> 1- is there a way to disable the creation of directories if they don't
> exist (like fastcgi_temp or client_body_temp) and pop-up en emergency
> message instead ? I don't want nginx to create top directories without
> notify me. I prefer having an error and correct it myself than having
> a directory created without knowing it presence.
>
> 2- I have fastcgi module compiled in nginx so I have to have the
> fastcgi_temp directory present on my system even if I don't use
> fastcgi at all. Is it possible to make it disable somehow ? (I can't
> simply remove fastcgi module at compile time because it's a mutualized
> server and some instances need fastcgi and others don't.

No, there is no way to disable this.

Also, nginx creates only leaf directories, e.g. for/spool/nginx/fastcgi_temp
it tries to create /spool/nginx/fastcgi_temp only, but not intermediate
/spool and /spool/nginx. If they do not exist, then nginx logs emergency
message.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

nginx create directories

Jérôme Loyet June 08, 2009 11:51AM

Re: nginx create directories

Igor Sysoev June 08, 2009 02:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready