码迷,mamicode.com
首页 > 其他好文 > 详细

nginx常用配置文件模块

时间:2016-11-20 16:27:02      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:nginx 常用配置文件模块 module nginx config

pcre 正则表达式在线测试和学习站点。

https://regex101.com/


1 开启autoindex功能,当需要提供ftp http协议的下载文件功能的时候比较有作用

Module ngx_http_autoindex_module

参考:http://nginx.org/en/docs/http/ngx_http_autoindex_module.html

location / {
        autoindex on;
        autoindex_localtime on;
        autoindex_exact_size off;
}


2 开启tengine开源的功能模块 concat。


参考:https://www.nginx.com/resources/wiki/modules/concat/

location / {
        concat on;
        concat_max_files 60;
        concat_ignore_file_error off;
        concat_types text/css application/x-javascript;
}


本文出自 “燕子李三” 博客,请务必保留此出处http://cuidehua.blog.51cto.com/5449828/1874747

nginx常用配置文件模块

标签:nginx 常用配置文件模块 module nginx config

原文地址:http://cuidehua.blog.51cto.com/5449828/1874747

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!