Skip to content

support inheritance log_format for child configs#95

Open
IgorPyN wants to merge 4 commits intolebinh:masterfrom
IgorPyN:multilogs
Open

support inheritance log_format for child configs#95
IgorPyN wants to merge 4 commits intolebinh:masterfrom
IgorPyN:multilogs

Conversation

@IgorPyN
Copy link
Copy Markdown

@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
Copy Markdown
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