Nginx学习之五:Nginx第三方模块

第三方模块

      这些模块不被官方所支持,亦未必能跨越Nginx的版本兼容。不过其中有些模块证明是对多数用户是有用的。只在于个人的风险问题。

编译第三方模块

第三方模块和 Nginx资源是一起被编译过的.在资源目录键入:

./configure --add-module=/path/to/module1/source \
            --add-module=/path/to/module2/source

所需参数可以尽可能多地使用--add-module 来设置。请注意,某些模块可能需要额外的系统安装库支持。

编写你自己的模块

Evan Miller 已经被写到 definitive guide 的 Nginx模块的部署中. 但它的某些部分是有点过时了。你已经被警告。

 Nginx Development Kit已放在github资源探索中,您可以获取到最新的更新。另外您还可以参阅本页下方方的工具。

知名模块

NameDescriptionAuthorLink
Accept LanguageParses the Accept-Language header and gives the most suitable locale from a list of supported locales.Guillaume MauryDownload
Access KeyDenies access unless the request URL contains an access key.Mykola GrechukhDownload
AFCGIAsynchronous/multiplexing FastCGI for nginx (incl. ref server implementation)rsmsDownload
Akamai G2ORestricts access to content to Akamai edge servers using G2O headersrefractalizeDownload
Array VarAdd support for array variables to nginx config filesagentzhDownload
Auth DigestHTTP Digest Authentication.Christian SwinehartDownload
Auth PAMHTTP Basic Authentication using PAM.Sergio Talens-OliagDownload
Auth RequestAllows authorization based on subrequest result.Maxim DouninDownload
Auto LibReuse pre-compiled/installed versions of OpenSSL, PCRE and Zlib without re-compiling them each time Nginx is compiledMarcus ClyneDownload
AWS authGenerate security headers for GET requests to Amazon S3.Arvind JayaprakashDownload
BacktraceA nginx module to dump backtrace case a worker process exits abnormally.TengineDownload
Cache PurgeModule adding ability to purge content from FastCGI, proxy, and uWSGI caches.FRiCKLEDownload
ChunkinHTTP 1.1 chunked-encoding request body support for Nginx.agentzhDownload
ConcatThis module can concatenate files in a given context: CSS and JS files usuallyTengineDownload
Circle GIFGenerates simple circle images with the colors and size specified in the URL.Evan MillerDownload
CT++Embeds CT++ (or CTPP2) VM, the execution part of a high-performance template engine system.Valentin V. BartenevDownload
Development KitAn extension to the core functionality of Nginx which can be used as a basis for other modulesMarcus ClyneDownload
DrizzleMake nginx talk directly to mysql and drizzle by libdrizzle.chaoslawfulagentzh, Piotr SikoraDownload
Dynamic etagsNginx module for etags on dynamic contentkaliDownload
EchoBrings "echo", "sleep", "time", "exec", and more shell-style goodies to Nginx config file.agentzhDownload
Enhanced MemcachedRepackaging of the standard memcached module to add features : custom http headers, hash keys, store entries in memcached with post http request, flush, key namespace, send 304 when no modificationBertrand PaquetDownload
Encrypted Sessionencrypt and decrypt nginx variable values, can be used for light-weight session-based authenticationagentzhDownload
EvalA module for evaluating memcached or proxy response into variable.vkholodkovDownload
Eval (agentzh's fork)Enhanced ngx_eval that can capture arbitrary subrequest's responses into nginx variables (can even with output filters enabled)agentzhDownload
ExpresszFirst of the Expressz lineup modules, Off-loading image and file/stream compression to (a) GPU(s).Jason Giedymin at AcronymLabs
EY BalancerAdds a request queue to Nginx that allows the limiting of concurrent requests passed to the upstream.Ry DahlDownload
Fancy IndexesLike the built-in autoindex module, but fancier.Adrian Perez de CastroDownload
Form InputThis module reads HTTP POST request body and parse the arguments into nginx variables.CalioagentzhDownload
Foot filterThis module implements a body filter that adds a given string to the page footer.TengineDownload
GeoIPCountry code lookups via the MaxMind GeoIP API.SPIL GAMESFile:Nginx-geoip-0.2.tar.gz
GridFSNginx module for serving files from MongoDB's GridFS.mdirolfDownload
Headers MoreSet and clear input and output headers...more than "add"!agentzhDownload
HTTP HealthcheckHealth check HTTP servers inside an upstream so you don't forward requests to bad hostsJack Lindamood
HTTP AccountingRealtime netflow and status code monitor solution for nginx, need less memory and cpu than realtime log analyzing. Useful for http traffic accounting based on nginx config logic ( per-location-traffic or per-server-traffic ).Liu LantaoDownload
HTTP PushTurn Nginx into an adept long-polling HTTP Push (Comet) server.Leo PonomarevDownload
HTTP Push StreamTurn Nginx into an adept stream HTTP Push (Comet) server.Wandenberg PeixotoDownload
HTTP RedisRedis support.Sergey A. Osokin <osa@FreeBSD.ORG.ru>Download
JavaScriptEmbedding SpiderMonkey. Full port of Perl module and more.Peter LeonovDownload
IconvA character encoding conversion nginx module using libiconv.CalioagentzhDownload
Log Request SpeedLog the time it took to process each request.Mauro Stettler
Lower Upper CaseSimple module to upper-/lowercase a string in the Nginx configMauro StettlerDownload
LuaEmbed the power of Lua into nginxchaoslawfulagentzhDownload
LuafileEmbed the power of Lua into nginx very easy.alacnerDownload
MemcAn extended version of the standard memcached module that supports set, add, delete, and many more memcached commands.agentzhDownload
ModSecurityWeb application firewall.Alan Silva, Trustwave
MogilefsImplements a MogileFS client, provides a replace to the Perlbal reverse proxy of the original MogileFS.Valery KholodkovDownload
MongoUpstream module that allows nginx to communicate directly with MongoDB database.FRiCKLE & Simpl.itDownload
MP4 Streaming LiteWill seek to a certain time within H.264/MP4 files when provided with a "start" parameter in the URL.Jiang HongDownload
NaxsiWeb Application Firewall for nginx.Thibault KoechlinDownload
NoticeServe static file to POST requests.Keith RarickDownload
OwnerMatchThis module provides a simple file owner-based access control.HeiherDownload
PHP-Memache Standard HashThis is a loadbalancer that imitates the PHP-Memcache standard hash's behaviourMauro StettlerDownload
PHP Session ParserExtract values that are stored in a serialized PHP sessionMauro StettlerDownload
PostgresUpstream module that allows nginx to communicate directly with PostgreSQL database.FRiCKLEDownload
PubcookieAdds Pubcookie-based cross-site authentication method to Nginx.VitkiDownload
RDS CSVHelp ngx_drizzlengx_postgres, and others emit Comma-Separated Values (CSV).agentzhDownload
RDS JSONHelp ngx_drizzlengx_postgres, and others emit JSON data.agentzhDownload
Redis2Upstream module for the full Redis 2.0 protocolagentzhDownload
RobooHTTP Robot mitigator utilizing advanced non-interactive HTTP challenge/response mechanismsYuri Gushin, Alex BeharDownload
RRD GraphThis module provides an HTTP interface to RRDtool's graphing facilities.Evan MillerDownload
RTMPRTMP protocol support. Live streaming and video on demand.Roman ArutyunyanDownload
Secure DownloadCreate expiring links.Mauro Stettler, Szymon ModzelewskiDownload
Set CConvConversion between Simplified Chinese and Traditional Chinese at rewrite phaseLiseen WanDownload
Set HashSet a variable to a variety of hash functions (upper/lowercase), including MD5, SHA1 and Murmurhash 2Marcus ClyneDownload
Set LangSet a variable to indicate the language based on a variety of sources including cookies, GET/POST variables, Accept Language header and moreMarcus ClyneDownload
Set MiscVarious set_xxx directives added to nginx's rewrite module (md5/sha1, sql/json quoting, and many more)agentzhCalioshrimpDownload
sFlowOperational performance monitoring with standard sFlow protocolNeil McKeeDownload
SliceNginx module for serving a file in slices (reverse byte-range).TengineDownload
SlowFS CacheModule adding ability to cache static files.FRiCKLEDownload
SPNEGOSupport for SPNEGO/gssapi in nginx.mike503/muhgatusDownload
SR CacheTransparent subrequest-based caching layout for arbitrary nginx locations (can be used with ngx_memc + memcached!)agentzhDownload
Static etagsNginx doesn't generate etags for static content. I'd like it to. Let's see if I can remember some C from college.mikewestDownload
StatsdAdds the ability for Nginx to interacting with statsd.zebrafishlabsDownload
Sticky upstreamA nginx module to add an upstream server persistance using cookies.J&eacute;r&ocirc;me LoyetDownload
StripWhitespace remover.Evan MillerFile:Mod strip-0.1.tar.gz
SubstitutionsA filter module which can do both regular expression and fixed string substitutions on response bodies.Weibin YaoDownload
SupervisordModule providing nginx with API to communicate with supervisord and manage (start/stop) backends on-demand.FRiCKLEDownload
UploadParses multipart/form-data allowing arbitrary handling of uploaded files.Valery KholodkovDownload
Upload ProgressTracks and reports upload progress.Brice FigureauDownload
Upstream Consistent HashSelect backend based on Consistent hash ring.Mauro StettlerDownload
Upstream Fair BalancerSends an incoming request to the least-busy backend server, rather than distributing requests round-robin.Gregory NosekDownload
Upstream HashProvides simple upstream load distribution by hashing a configurable variable.Evan MillerDownload
Upstream KeepaliveProvides keep-alive connections to memcached upstreams.Maxim DouninDownload
User-agentA more powerful module than the Native BrowserModuleTengineDownload
Video Thumb ExtractorNginx module to extract thumbs from a video file.Wandenberg PeixotoDownload
WSGIWSGI implementation for Nginx. Allows easy deployment of Python applications.Manlio PerilloDownload
XSSNative support for cross-site scripting (XSS) in an nginx.agentzhDownload
ZipAssemble ZIP archives on the fly.Evan MillerDownload
Extended status moduleExtended status module for nginx최영석(Choi Youngseok), 李金虎(Li Jinhu)Download

工具模块开发

NameDescriptionAuthorLink
Nginx Auto Lib CoreReusable file for module developers to include with their modules to easily and consistently handle including external libraries; used in the Auto Lib module and included in the Nginx Development KitMarcus ClyneDownload
Nginx Development KitAn extension to the core functionality of Nginx which can be used as a basis for other modulesMarcus ClyneDownload

第三方补丁

这些补丁必须应用到Nginx的源代码树。这里没有保证这些补丁将适用于Nginx的特定版本。 通过第三方模块,这些补丁是不会被Nginx官方所支持的。您的处理效果可能会有所不同。

DescriptionAuthorLink
Log to syslog.Marlon de BoerPatch for version 0.8.49 with 'sh is not bash' fix | Syslog Patch for Nginx 0.8.54+
Disable nginx's memory pool to help valgrind and other tools (for nginx C developers only)shrimp,agentzhGit repository for the patch
SSL Session tickets distributed via memcachedMatthew PalmerGit repository for changes

Migration工具

NameDescriptionAuthorLink
Apache2NginxA command line tool, which can be used to generate nginx config file according to given config files of Apache李德(Reed), 李金虎(Li Jinhu), 최영석(Choi Youngseok)Download

参考资料

From: http://wiki.nginx.org/3rdPartyModulesChs

转载于:https://my.oschina.net/boonya/blog/287300

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值