nginx-tokenNginx 令牌模块
nginx-token 是一个基于 memcached 的 Nginx 令牌模块。
示例配置:
server
{
listen 80;
root /var/www;
location /
{
token on;
token_server 127.0.0.1:11211;
token_len 12;
token_key token;
index index.html index.htm index.php;
error_page 404 = /real;
}
location /real
{
proxy_pass http://backend;
}
}评论
