深入理解nginx 模块的模块下载地址

专注于物联网
Nginx常用模块
本文介绍了几个Nginx常用模块的使用方法。
ngx_http_ssi_module
官方说明文档:
http://nginx.org/en/docs/http/ngx_http_ssi_module.html
在 http, server, location, if in location 等上下文中启用 ssi:
在html源文件中包含其他文件:
&!--# include file="/footer.html" --&
编辑footer.html文件,达到自己的效果;
reload nginx 配置即可生效;扩展:
在官方文档中有很多配置和命令,根据自己需要选用即可。
http_ssl_module
配置选项:加入 ssl 模块
./configure \
--with-http_ssl_module
cp -f objs/nginx /usr/local/nginx/sbin/nginx
可以通过以下步骤生成一个简单的证书:
首先,进入你想创建证书和私钥的目录,例如:
$ cd /usr/local/nginx/conf
创建服务器私钥,命令会让你输入一个口令:
$ openssl genrsa -des3 -out server.key 1024
创建签名请求的证书(CSR):
$ openssl req -new -key server.key -out server.csr
在加载SSL支持的Nginx并使用上述私钥时除去必须的口令:
$ cp server.key server.key.org
$ openssl rsa -in server.key.org -out server.key
最后标记证书使用上述私钥和CSR:
$ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
修改Nginx配置文件,让其包含新标记的证书和私钥:
listen 443
ssl_certificate
/usr/local/nginx/conf/server.
ssl_certificate_key /usr/local/nginx/conf/server.
ssl_protocols
TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers
AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
ssl_session_cache
shared:SSL:10m;
ssl_session_timeout 10m;
keepalive_timeout
重启nginx。
http_image_filter_module
安装 ImageFilter 模块依赖的库
apt-get install libgd2-xpm-dev
编译与安装
./configure \
--with-http_image_filter_module
cp -f objs/nginx /usr/local/nginx/sbin/nginx
location ^~ /images/ {
image_filter
访问 /images/bg001.jpg
即可得到压缩后的照片。
第三方模块:Foot Filter
这里有很多第三方模块:
https://www.nginx.com/resources/wiki/modules/index.html
我们从中挑选一个看似功能简单的来使用一下:Foot Filter
https://github.com/shennongmin/nginx-http-footer-filter
Footer Filter 下载、编译、安装以及使用
编译前Nginx配置选项
./configure \
--with-http_image_filter_module \
--with-http_ssl_module \
--add-module=/root/nginx-http-footer-filter
cp -f objs/nginx /usr/local/nginx/sbin/nginx
配置 Footer Filter
location / {
## Using the $date_gmt variable from the SSI module (prints a
## UNIX timestamp).
footer "&!-- $date_gmt --&";
index index.
引入 Tengine
http://tengine.taobao.org/
Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能
和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打
造一个高效、稳定、安全、易用的Web平台。
从2011年12月开始,Tengine成为一个开源项目,Tengine团队在积极地开发和维护着它。Tengine团队的核心成员
来自于淘宝、搜狗等互联网企业。Tengine是社区合作的成果,我们欢迎大家参与其中,贡献自己的力量。
继承Nginx-1.6.2的所有特性,兼容Nginx的配置;动态模块加载(DSO)支持。加入一个模块不再需要重新编译整个Tengine;支持SO_REUSEPORT选项,建连性能提升为官方nginx的三倍;同时支持HTTP v2协议和SPDY v3协议,可同时使用两种协议;流式上传到HTTP后端服务器或FastCGI服务器,大量减少机器的I/O压力;更加强大的负载均衡能力,包括一致性hash模块、会话保持模块,还可以对后端的服务器进行主动健康检查,根 - 据服务器状态自动上线下线,以及动态解析upstream中出现的域名;输入过滤器机制支持。通过使用这种机制Web应用防火墙的编写更为方便;支持设置proxy、memcached、fastcgi、scgi、uwsgi在后端失败时的重试次数动态脚本语言Lua支持。扩展功能非常高效简单;支持管道(pipe)和syslog(本地和远端)形式的日志以及日志抽样;支持按指定关键字(域名,url等)收集Tengine运行状态;组合多个CSS、JavaScript文件的访问请求变成一个请求;自动去除空白字符和注释从而减小页面的体积自动根据CPU数目设置进程个数和绑定CPU亲缘性;监控系统的负载和资源占用从而对系统进行保护;显示对运维人员更友好的出错信息,便于定位出错机器;更强大的防攻击(访问速度限制)模块;更方便的命令行参数,如列出编译的模块列表、支持的指令等;可以根据访问文件类型设置过期时间;……
nginx常用模块介绍
nginx常用模块
一深入理解Nginx的 模块化 ,全局观
nginx安装配置优化及第三方模块调用(详细)
nginx静态模块分析
【nginx】nginx模块简单介绍
Nginx常用模块介绍及配置文件说明
nginx HTTP模块组成
nginx配置详解之http模块
Nginx的模块与工作原理
没有更多推荐了,nginx上传模块下载安装的相关文章推荐 - 开源软件 - ITeye专栏频道
Nginx下载地址,英文文档
http://happyqing.iteye.com/blog/1806478
上传模块下载地址
http://www.grid.net.ru/nginx/upload.en.html
http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz
Nginx-1.3.X,Nginx-1.4.X安装nginx_upload_module-2.2.0.tar.gz会有点问题,报
/opt/nginx_upload_module-2.2.0/ngx_http_upload_module.c: In function ‘ngx_http_read_upload_client_request_body’:/opt/nginx_upload_module-2.2.0/ngx_http_upload_module.c:2628: 错误:‘ngx_http_request_body_t’ 没有名为 ‘to_write’ 的成员
选择Nginx-1.2.X的就没 ...
新项目,要上服务器,配置代理服务器,由于一直使用的是nginx来做代理、负载,这次也如此,配置如下:
1.软件准备
nginx:这里选择stable版本
http://nginx.org/en/download.html
wget http://nginx.org/download/nginx-1.0.6.tar.gz
pcre:rewrite所要使用的第三方模块
下载稳定版本,目前是nginx-0.7.64
http://nginx.net/
shell&& cd /opt
shell&& wget http://sysoev.ru/nginx/nginx-0.7.64.tar.gz
shell&& tar xzvf nginx-0.7.64.tar.gz
shell&& cd ngi ...
Nginx是一个轻量级的,高性能的Web服务器以及反向代理和邮箱(IMAP/POP3)代理服务器。它运行在UNIX,GNU /linux,BSD 各种版本,Mac OS X,Solaris和Windows。根据调查统计,6%的网站使用Nginx Web服务器。Nginx是少数能处理C10K问题的服务器之一。跟传统的服务器不同,Nginx不依赖线程来处理请求。相反,它使用了更多的可扩展的事 件驱动( ...
  随着类似Twitter的微型博客网站的出现,由于字符数的限制,网址缩短服务日渐增多。加上网址缩短服务提供商提供网址追踪等服务,这一业务日渐兴起。知名网址缩短服务商Bit.ly的主要业务便是为微博Twitter提供网址缩短服务。 比如sina微博的sinaurl.cn,腾讯微博的url.cn等。
  实现原理很简单,主要是将用户提交的 url 地址转化成一个唯一的字串,这个字串就对应着真实 ...
Nginx是一个轻量级的,高性能的Web服务器以及反向代理和邮箱(IMAP/POP3)代理服务器。它运行在UNIX,GNU /linux,BSD 各种版本,Mac OS X,Solaris和Windows。根据调查统计,6%的网站使用Nginx Web服务器。Nginx是少数能处理C10K问题的服务器之一。跟传统的服务器不同,Nginx不依赖线程来处理请求。相反,它使用了更多的可扩展的事 件驱动( ...
JEECG(J2EE Code Generation) 是一款基于代码生成器的智能开发平台,采用代码生成+手工MERGE半智能开发模式, 可以帮助解决Java项目60%的重复工作,让开发更多关注业务逻辑。既能快速提高开发效率,帮助公司节省人力成本,同时又不失扩展性和灵活性。
JEECG宗旨是:简单功能由代码生成器生成使用; 复杂业务采用表单自定义,业务流程使用工作流来实现、扩展出任务接口,供开发 ...
挪威的ruby开发者August Lilleaas最近整理了一些关于如何使用 Net::HTTP库的代码示例。 Net::HTTP被广泛的使用到许多库中,类似John Nunemaker’s的HTTParty和Paul DIx’s的高性能Typhoeus。作为标准库的一部分,Net::HTTP虽然没有简单好记的API,但也算是一个不错的可选方案。 Standard HTTP Request req ...
自从2009年11月份发布第一个原型版本后,(见这里) 时间一恍就过去了1年半, 这段时间主要忙于工作了(从事分布式数据访问、存储以及Web容器方面的工作), 所以douyu一直处于停滞状态,直到今年3月份开始才能将1/3的时间投入到上面。
最初的版本抛弃了Servlet/JSP规范,并且自已实现容器,这思路理论上是没有大的错的, 但是太新潮了,原有的技术积累不能充分使用,所以但凡追求稳定第一 ...
#wget -O nginx-upload-module.tar.gz https://github.com/vkholodkov/nginx-upload-module/archive/2.2.0.tar.gz
#tar zxvf nginx-upload-module.tar.gz
重新编译nginx
--add-module=指定模块目录
nginx-upload-prgress下载地址:http://wiki.nginx.org/NginxHttpUploadProgressModulenginx-upload-module下载地址及相关说明:http://www.grid.net.ru/nginx/upload.en.html接下来安装Nginx1.安装Nginx所需的pcre库:# unzip pcre-8.21 ...
使用 nginx_upload_module上传大附件
由于PHP会上传超时,不能限速!
php.ini中的配置对nginx_upload_module没有影响。
如果要上传大文件,可以在nginx.conf中的http部分添加一行:
client_max_body_size 50m;
另外还要进行上传的配置:
location = /suibian-shezhi.htm {
zhuan : http://www.grid.net.ru/nginx/upload.en.html
Nginx upload module (v 2.2.0)
A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867) ...
现在Rails官方推荐的最佳部署方式是Apache+Passenger的模式。此模式拥有及其强大的功能,能够自动增减集群进程的数量,对后续部署又很简单。难怪DHH在博客中对Passenger赞誉有加。
近期我在Ubuntu上部署了几个Rails网站,都是采用Apache+Passenger的模式。故此写下我的安装配置经验,与大家分享。
安装完Ubuntu 8服务版后,操作系统非常小,很简洁, ...
网上找资料,用struts2做了个文件上传的例子,现在问题是图片,txt文件都能上传了,但一上传MP3文件,action都不执行了~~~ action:
import java.io.F import java.util.D import org.apache.commons.io.FileU import pojo.HighDefinitionM impor ...
&% form_tag({:action=&&upload_file&, :path =& @path},:multipart=&true, :id =& &upload_file&, :name =& 'upload_file') do%& &%= file_field_tag &file&quot ...
我现在用Spring MVC 做一个 增删查改的例子。同时还需要有validate功能。 我在本地试验,一直报这样的错误: Neither BindingResult nor plain target object for bean name 'command' available as request attribute 。。。 我的程序代码是这样的: web.xml: &?xml vers ...
nginx配置说明---------------------------- #运行用户 #启动进程 worker_processes 2; #全局错误日志及PID文件 error_log logs/error. pid logs/nginx. #工作模式及连接数上限 events { worker_conne ...
create.gsp
&g:uploadForm action=&save& &
&fieldset class=&form&&
&g:render template=&form&/&
&/fieldset&
&fieldset class=&buttons&quo ...
写了个简陋的文件复制,其实我是想用IO流来实现文件上传的。我异想天开了,WEB上不是简单的复制。谁能教下怎么做,还有怎么处理文件复制过程文件丢失的问题。如果请我用fileupload这样的话就不用说了。看了下fileupload源码没找到流的处理过程。所以来这请教下 package com. import java.io.BufferedInputS import
来源:flash,as,js兴趣爱好者html5 canvas 3d小游戏
&!DOCTYPE html& &html& &head& &meta charset=&UTF-8& /& &title&forked: ハコニワブロックス タクト - js do it&/title& & ...
本文讲述如何在Linux/Unix平台上面搭建Nginx+Mongrel Cluster实现Rails高负载的应用。 安装PCRE库 $ ftp ftp.csx.cam.ac.uk username: anonymous & cd pub/software/programming/pcre/ & get pcre-7.4.tar.bz2 & quit $ tar -jxvf pcr ...
在Django 1.0 版本后,文件上传的处理做了很大的改变,其中很重要的一点就是引入了 Upload Handlers 的概念。 Upload Handlers 这是个和Django中的Middleware差不多的东西,可以通过在 settings.py 文件中设置 FILE_UPLOAD_HANDLERS 定义一系列Upload Handlers, 和Middleware相似的地方主要表现为以下 ...
在这章中,你将熟悉一下Struts2重定向Action并学习如何在Struts2程序中使用它.
Post之后的重定向 : 该post模式由Struts2提供.这web程序中是常见的模式.由一个action转发到另一个action.这是常见的用法转发action显示页面.
转发Action结果 : 重定向模式由Struts2提供.ActionMapperFactory提供的ActionMapp ...
在本章你将学习如何使用struts2连接MySQL数据库. 按照如下步骤连接MySQL数据库 : 第一步 : 创建struts.xml并向其中添加如下xml代码 :
&?xml version=&1.0& encoding=&UTF-8& ?& &!DOCTYPE struts PUBLIC &-//Apache Software ...如何安装nginx第三方模块 – 运维生存时间
你可能喜欢
有回复时邮件通知我
关于本站 本站以分享运维技术为主,欢迎大家参与技术分享,同时也欢迎大家吐槽,本站提供以下交流圈:QQ群①:*****(满)QQ群②:6690706 QQ群③: QQ群④:(新) 微信公众号:ttlsacom 商务合作QQ:
记住我的登录信息
点击“立即注册”转到用户注册页面。
输入用户名或电子邮箱地址,您会收到一封新密码链接的电子邮件。
用户名或电子邮件地址NGINX 3rd Party Modules
Below is a list of third-party modules for NGINX and NGINX Plus, created
and maintained by members of the NGINX community. NGINX, Inc. provides
support for some of these modules, where indicated in the table below.
For a full list of supported modules, and additional NGINX Plus Certified
Modules from our partners, see .
For information on how to contribute a module to this list, see
Accept-Language header parser
Asynchronous/multiplexing FastCGI for NGINX
Akamai G2O
Restricts access to content to Akamai edge servers using G2O headers
Add support for array variables to NGINX config files
Generate audio track for HTTP Live Streaming (HLS) streams on the fly
HTTP Digest Authentication
PAM Authentication
HTTP Basic Authentication using PAM
Request Authentication
Allows authorization based on subrequest result
Reuse pre-compiled/installed versions of OpenSSL, PCRE and Zlib
Generate security headers for GET requests to Amazon S3
A NGINX module to dump backtrace case a worker process exits abnormally
Serves dynamically or statically compressed responses with brotli
Cache Purge
Adds ability to purge content from FastCGI, proxy, and uWSGI caches
Generates simple circle images with colors/size specified in the URL
A module for embedding Clojure, Java, and Groovy programs
Cookie Flag
Set the flags “HttpOnly”, “secure” and “SameSite” for cookies
Concatenates files in a given context
Select backend based on Consistent hash ring
Development Kit
An extension to the core functionality of NGINX
An asynchronous domain name resolve module for NGINX upstream
HTTP Drizzle
Make NGINX talk directly to MySQL or Drizzle database servers
Dynamic etags
NGINX module for etags on dynamic content
Dynamic Upstream
Update upstreams’ config by restful interface
Dynamic limit
Dynamic lock IP and release regularly
Provides familiar shell-style commands to NGINX HTTP servers
Stream Echo
Provides familiar shell-style commands to NGINX stream servers
Elasticsearch client
Elasticsearch client in nginx proxy for multiple elasticsearch server
Encrypted Session
Encrypt NGINX variables for light-weight session-based authentication
Enhanced Memcached
Repackaging of the standard memcached module to add features
A module for evaluating memcached or proxy response into variable
Eval (OpenResty’s fork)
Captures arbitrary subrequests’ responses into custom NGINX variables
Commands remotely and return results
EY Balancer
Provides a request queue for limiting concurrent requests
Distributes incoming requests to least-busy servers
Like the built-in autoindex module, but fancier
Implements a body filter that adds a given string to the page footer
c/c++ service function handler which built for NGINX fastcgi
Footer If Filter
Applies a footer if a response meets a specified condition
Parses HTTP POST request bodies and saves results to NGINX variables
City and country code lookups via the MaxMind GeoIP2 API
NGINX module for serving files from MongoDB’s GridFS
A module for embedding Clojure, Java, and Groovy programs
Binding Haskell code in configuration files for great good!
Headers More
Set and clear input and output headers... more than “add”!
Health check HTTP servers inside an upstream
Realtime traffic and status code monitoring (HTTP + Stream)
HTTP Iconv
Converts character encodings
Internal Redirect
A NGINX module for internal redirection
IP2Location
Identifies the country name/code of an IP address
Anonymizes IP addresses for logging
A module for embedding Clojure, Java, and Groovy programs
JavaScript
Embedding SpiderMonkey, a full port of Perl module, and more
Provides upstream load distribution by hashing a configurable variable
LDAP module which supports authentication against multiple LDAP servers
Limit Upload Rate
Limit the transmission rate of request body from a client
Limit Upstream Connection
Limits the maximum connections to each server in a upstream
Log the requests only when given conditions are met
Log the requests via ZeroMQ
Lower Upper Case
Provides upper/lowercase string functions in NGINX config files
Embed the power of Lua into NGINX HTTP servers (OpenResty Official)
Stream Lua
Embed the power of Lua into NGINX TCP servers (OpenResty Official)
Embed the power of Lua into NGINX
HTTP Lua Upstream
Make Nginx http upstream configurations scriptable by Lua
MD5 Filter
Returns the MD5 sum of content that would’ve otherwise been served
Extension of the standard memcached module
Add overlays and logos to JPEGs on-the-fly without degrading the quality
ModSecurity
Web application firewall
Implements a MogileFS client
Upstream module for direct communication with MongoDB
Seeks time within H.264/MP4 files if a “start” parameter is in the URL
Embedded mruby script language for nginx-module
Pubsub server for Websockets, Long-Poll, EventSource etc.
Web Application Firewall for NGINX
nginx-c-function
It is a NGINX module that allow you to link your .so(c/c++) application
nginx-ip-blocker
An efficient shared memory IP blocking system for nginx.
Serve static file to POST requests
OCSP proxy
OCSP processing module designed for response caching
OpenSSL Version
OpenSSL minimum version constraints in configuration
Provides a simple file owner-based access control
Rewrites webpages and associated assets to reduce latency and bandwidth
NGINX-based application server for Ruby, Node.js and Python apps
Embedded php script language for nginx-module
PHP Session Parser
Extract values that are stored in a serialized PHP session
PHP-Memache Standard Hash
Load balancer that imitates the PHP-Memcache standard hash’s behaviour
POST authentication
Authentication and authorization via POST request and PAM
Allows NGINX to communicate directly with PostgreSQL database
Adds Pubcookie-based cross-site authentication method to NGINX
Turns NGINX into an adept stream HTTP Push server
Makes a reverse DNS lookup and provides control of incoming hostname
Helps ngx_drizzle, ngx_postgres, and others emit Comma-Separated Values
Helps ngx_drizzle, ngx_postgres, and others emit JSON data
Redis support module
HTTP Redis2
HTTP Upstream module for the full Redis 2.0 protocol
HTTP Tarantool
HTTP Upstream module for communicate with Tarantool DB
Replace Filter
Performs regular expression substitutions on response bodies
HTTP Robot Mitigator that integrates easily with NGINX
This module provides an HTTP interface to RRDtool’s graphing facilities
RTMP protocol support. Live streaming and video on demand
RTMPT module
Proxy RTMP packages using stadard HTTP requests
Compiles SASS files in NGINX before sending the response
Create expiring links
Selective Cache Purge
A cache purge module that allows GLOB expressions like .jpg or /test
Conversion between Simplified and Traditional Chinese at rewrite phase
Set a variable to hash functions, including MD5, SHA1 and Murmurhash 2
Set a variable to indicate the language based on a variety of sources
HTTP Set Misc
Various set_xxx directives added to NGINX’s rewrite module
Operational performance monitoring with standard sFlow protocol
Shibboleth Auth
Perform authorization based on subrequest to Shibboleth FastCGI app
NGINX module for serving a file in slices (reverse byte-range)
SlowFS Cache
Adds ability to cache static files
SmallLight
Dynamic Image Transformation Module For NGINX
SOCKS5 proxy module for NGINX
Sorted Querystring
Expose a variable with the parameters ordered to be used as a cache_key
NGINX upstream module for Sphinx 2.x
Support for SPNEGO/gssapi in NGINX
HTTP SRCache
Transparent subrequest-based caching layout for NGINX locations
Retrieves and exposes additional user attributes from SSSD
Static etags
Generates etags for static content
Adds the ability for NGINX to interacting with Statsd
Sticky upstream
Adds an upstream server persistance using cookies
Stomp Messaging Protocol
A STOMP upstream module on nginx, send http to any AMQ which has stomp
A stream traffic status module
Split one big HTTP/Range request to multiple subrange requesets
Performs regular expression and string substitutions on response bodies
Summarizer
An upstream module for Summarizer 1.0
Supervisord
Communicate with supervisord and manage backends on-demand
Sync Upstreams
Syncing upstreams from etcd or consul, needn’t reload nginx(HTTP Module)
Sync Upstreams
Syncing upstreams from etcd or consul, needn’t reload nginx(TCP Module)
A module to protect the system against too high load
TCP proxy with NGINX, includes health check and status monitor
TestCookie module
Simple robot (DDoS) mitigation module
Types Filter
Changes the Content-Type output header on specified conditions
serve file directly from the archives
Handles file uploads using multipart/form-data encoding (RFC 1867)
Tracks and reports upload progress
A module to convert uri to user-defined encoding
A more powerful module than the native BrowserModule
Video Thumb Extractor
NGINX module to extract thumbs from a video file
Repackage MP4 files for streaming in HLS, HDS, MSS and DASH
A virtual host and upstream traffic status module
Webp wrapper to convert files on the fly
Native support for cross-site scripting (XSS)
Assemble ZIP archives on the fly}

我要回帖

更多关于 nginx集群搭建 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信