Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@IgorPyN
Copy link

@IgorPyN IgorPyN commented Feb 1, 2019

In case main nginx.conf uses include directive for child sites but log_format specified in nginx.conf tool couldn't capture log strings. It stops with
Error: Incorrect format name set in config for access log file
or produces nothing.

This patch looks for log_format in main nginx.conf and applies it if needed.

Known limitation:
works only when site config is specified, not log.

@IgorPyN
Copy link
Author

IgorPyN commented Feb 3, 2019

Also added ability to detect corresponding (sub)config for given log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant