Last active
June 11, 2020 18:32
-
-
Save KarimJedda/1f6866dc55bc031b09b648e27e663965 to your computer and use it in GitHub Desktop.
Nginx date format change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /etc/nginx/nginx.conf: | |
#add: | |
log_format mycombined '$remote_addr - $remote_user [$time_iso8601] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'; | |
access_log /var/log/nginx/access.log mycombined; | |
nginx -s reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment