Skip to content

Instantly share code, notes, and snippets.

@lixingcong
Last active October 18, 2022 06:23
Show Gist options
  • Save lixingcong/e6987f83c9e7b226f976876f5c68f928 to your computer and use it in GitHub Desktop.
Save lixingcong/e6987f83c9e7b226f976876f5c68f928 to your computer and use it in GitHub Desktop.
nginx autoindex timezone setting
location ^~ /demo {
alias /var/www/demo/;
autoindex on;
# set to on means use localtime
autoindex_localtime on;
# show size with unit 'MB' instead of 'Byte'
autoindex_exact_size off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment