Created
September 14, 2016 15:19
-
-
Save bwangelme/e47608025c10e452520b6c2411aa0b42 to your computer and use it in GitHub Desktop.
Nginx 配置文件服务器
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
sendfile on; | |
tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 8082; #端口 | |
server_name localhost; #服务名 | |
root /dev/shm/update; #显示的根索引目录 | |
autoindex on; #开启索引功能 | |
autoindex_exact_size off; # 关闭计算文件确切大小(单位bytes),只显示大概大小(单位kb、mb、gb) | |
autoindex_localtime on; # 显示本机时间而非 GMT 时间 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment