Nginx 教程

主要文档

Nginx功能概述 为什么选择Nginx Nginx安装 常见问题(FAQ) 配置符号参考 调试 nginx 优化 Nginx 运行和控制Nginx

核心模块

Nginx事件模块 Nginx主模块

基本模块

Browser模块 Charset模块 Geo模块 HttpAccess模块 HttpAuthBasic模块 HttpAutoindex模块 HttpEmptyGif模块 HttpFcgi模块 HttpGzip模块 HttpHeaders模块 HttpIndex模块 HttpIndex模块. HttpLimit zone HttpLimitReqest模块 HttpLog模块 HttpProxy模块 HttpRewrite模块 HttpSSI模块 HttpUserId http核心模块 map Memcached

其他模块

Addition模块 EmbeddedPerl flv GooglePerftools HttpDav模块 HttpGeoIP HttpGzipStatic HttpImageFilter HttpRealIp HttpSecureLink HttpSSL HttpSubstitution HttpXSLT RandomIndex StubStatus模块

mail模块

MailAuth MailCore MailProxy MailSSL

安装

nginx php-fpm安装配置 nginx在fedora上的安装 nginx在freebsd上的安装 nginx在ubuntu上的安装 nginx在windows上的安装

配置示例和方法

HWLoadbalancerCheckErrors nginx防盗链 负载均衡 完整例子 完整例子2 虚拟主机

HttpSecureLink


This module computes and checks request URLs for a required security token. This module is not compiled by default and must be specified using the
这个模块计算和检测URL请求中必须的安全标识
这个模块没有默认编译,在编译Nginx时,必须使用明确的配置参数

--with-http_secure_link_module 

argument to configure when compiling Nginx. Note that this module is only supported in nginx version 0.7.18 and higher.
来说明配置.这个模块在Nginx 0.7.18及以上版本中被支持.

Example usage:

location /prefix/ {
    secure_link_secret   secret_word;


    if ($secure_link = "") {
        return 403;
    }
} 

指令

syntax:*secure_link_secret secret_word*

default:*none*

context:*location*

The directive specifies a secret word to verify requests. The full URL for a protected links follows this form:
这个指令明确一个安全关键字来审核请求。完整的被保护的URL如下表:

/prefix/hash/reference

hash is computed as as 使用md5('参考','安全密码')函数计算

md5 (reference, secret_word); 

prefix is the scope of the location block, and must not be '/'. secure_link can only be used in non-root paths.
前缀是定位块的范围,绝对不能使用'/'。安全连接只能被用在非根目录路径。

变量

Automatically set to the reference component of the URL, isolated from the prefix and hash. If the hash is incorrect, an empty string is returned instead.
自动设置模块到URL的关联,分开前缀和HASH。如果HASH不正确,将返回空字符串。