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

Logging issues with docker #48

Open
ma-ef opened this issue May 18, 2023 · 0 comments
Open

Logging issues with docker #48

ma-ef opened this issue May 18, 2023 · 0 comments

Comments

@ma-ef
Copy link

ma-ef commented May 18, 2023

Please be advised that these lines on logging in the proposed configuration should be removed/changed:

logging

access_log /var/log/nginx/wordpress.access.log;
error_log /var/log/nginx/wordpress.error.log;

Let me explain the reasons behind.
a) it overrides the default logging format of dockerized nginx which means "$http_x_forwarded_for" is not logged
b) give the false impression that log files are saved to disk when in fact they are just sent to docker due to the way the nginx container is set up

Proposal: remove these lines or add at least the word main to the accesslog line:
access_log /var/log/nginx/wordpress.access.log main;

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

No branches or pull requests

1 participant