Score:0

Change nginx temp & log folder on Windows

ru flag

I installed nginx on Windows but when i execute it from a directory that's different from the folder that resides nginx.exe i get the following error:

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified)
nginx: the configuration file C:/Program Files/nginx-1.20.2/conf/nginx.conf syntax is ok
2022/01/13 08:36:21 [emerg] 13652#17592: CreateDirectory() "C:\Users\user/temp/client_body_temp" failed (3: The system cannot find the path specified)
nginx: configuration file C:/Program Files/nginx-1.20.2/conf/nginx.conf test failed

I already added the following line to nginx.conf, but it didnt work.

error_log        "C:\\Program Files\\nginx-1.20.2\\logs\\error_log";

Can someone help me?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.