差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
| public:it:nginx [2014/08/05 21:10] – 创建 oakfire | public:it:nginx [2024/10/31 11:32] (当前版本) – [Articles] oakfire | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== nginx ====== | ====== nginx ====== | ||
| * 停止'' | * 停止'' | ||
| + | * 重载配置 '' | ||
| + | ===== Articles ===== | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | ===== 配置语法 ===== | ||
| + | * [[http:// | ||
| + | * location 配置语法:[[http:// | ||
| + | location @name { ... }</ | ||
| + | * 默认(无标记)是前缀最长匹配; | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * 匹配优先级官方文档: | ||
| + | - Directives with the = prefix that match the query exactly. If found, searching stops. | ||
| + | - All remaining directives with conventional strings, longest match first. If this match used the ^~ prefix, searching stops. | ||
| + | - Regular expressions, | ||
| + | - If #3 yielded a match, that result is used. Else the match from #2 is used. | ||
| + | * 中文: | ||
| + | - '' | ||
| + | - 所有剩下的常规字符串,最长的匹配。如果这个匹配到^〜前缀,搜索停止。 | ||
| + | - 正则表达式,在配置文件中定义的顺序。 | ||
| + | - 如果第3条规则产生匹配的话,结果被使用。否则,使用第2条规则的结果。 | ||
| + | |||
| + | ==== 去除 server header 版本号 ==== | ||
| + | * 在 ''/ | ||
| + | * 修改 ''/ | ||
| + | * 或者修改源码,或者用插件 :[[http:// | ||
| + | |||
| + | ==== 添加基本认证 ==== | ||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | |||
| + | ==== Tips ==== | ||
| + | * [[https:// | ||
| + | * 用 '' | ||
| + | * [[https:// | ||
| + | * nginx 转发直播视频流时一定要关掉代理缓存:'' | ||
| + | * '' | ||
| + | |||