-
-
Save holishing/7143e95d32ea6b134690b6f0c4038c41 to your computer and use it in GitHub Desktop.
nginx autoindex timezone setting
This file contains 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
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