views:

13

answers:

1

I've found plenty of references on the web for rotating the nginx logs under linux.. just send the USR1 signal to the process. But... unix like signals don't exist on windows and I haven't been able to find any information on this. How can I accomplish the same thing with nginx on windows??

A: 

Actually, (despite tons of googling), the answer can be found squarely in the doc pages at http://nginx.org/en/docs/windows.html

The command is

nginx -s reopen

But this only seems to work when running nginx from the command line- currently the only official way to run nginx on windows at this time.

My next challenge is to figure out how to make this work when running nginx as a windows service as described at a link that I'm not currently allowed to post because I'm [apparently] a new user on stackoverflow :-(