摘要: Nginx强大的地方当然不止目前所讲的这些,详见 http://www.nginx.cn/doc/ 或 http://tengine.taobao.org/book/index.html 这两个就作为技术手册好了 阅读全文
posted @ 2016-09-01 22:18 csnmd 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 自动列目录 location / { # 自动列目录 autoindex on; # 显示文件大小 on 或 off autoindex_exact_size on; # 显示文件修改时间 on 或 off autoindex_localtime on; } 阅读全文
posted @ 2016-09-01 22:17 csnmd 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Nginx浏览器本地缓存设置 浏览器缓存,是为了加速浏览 浏览器在用户磁盘上对最近请求过的文档进行存储,当访问者再次请求这个页面时,浏览器自动从本地磁盘显示文档,这样可以加速页面浏览 浏览器缓存通过 expires 指令输出 Header 头来实现 语法:expires [time|epoch|ma 阅读全文
posted @ 2016-09-01 22:17 csnmd 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 日志文件配置与切割 自定义日志格式 http { server { listen 80 default; server_name _*; access_log logs/default.access.log combined; location / { index index.html; root 阅读全文
posted @ 2016-09-01 22:16 csnmd 阅读(520) 评论(0) 推荐(0) 编辑