I would like to have log files nicely organized in sub-folders like


seems that setting like this

access_log /simplecoin/log/nginx/$host/$year/$month/$day/access.log access

would work if the folder already exist. Is there some way to create these folders automatically by nginx? I only found some posts from 2017 saying "sorry no t possible" but maybe there's been change

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.