Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support inheritance log_format for child configs #95

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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