-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
nixos/httpd: rename apache log files to have a .log file extension #54529
Conversation
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950/6 |
Discussion on discourse about moving to journald for apache logging, so putting this on hold for now. |
Moving to journald is completely different issue (and, I'd say, optional one!). I'd merge this, but I wonder if it requires release notes. Also, logrotate should understand |
@danbst sure logrotate understands it, but then logrotate will start rotating the rotation files as they end up in the same directory. Yeah mod_journald isn't out until apache 2.5 and this change would sure make things better until then... Let me write up some release notes mentioning the change in file names and we can leave the journald stuff alone until 2.5 is out. Sound reasonable? |
Oh, right, but what about
yeah |
That doesn't account for virtual hosts as those log files don't end in _log but instead the host name. |
oh crap. Ok then, waiting for release doc and then can be merged. |
@danbst let me know if this works for you. Thanks! |
@aanderse thanks! |
Motivation for this change
I'd like to be able to easily logrotate apache logs. Other main distros give their apache logs a .log file extension so easy logrotate rules can be written (like /var/log/httpd/*.log). Currently with the way virtual host logs are named there is no straight forward way to logrotate files.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)