Skip to content

Instantly share code, notes, and snippets.

@KarimJedda
Last active June 11, 2020 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KarimJedda/1f6866dc55bc031b09b648e27e663965 to your computer and use it in GitHub Desktop.
Save KarimJedda/1f6866dc55bc031b09b648e27e663965 to your computer and use it in GitHub Desktop.
Nginx date format change
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