Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. nginxEinsatzgebiet:• Webserver• Reverse Proxying• E-Mail-Proxy (POP3/IMAP)Vorteile:• hohe Performance• Stabilität• einfache Konfiguration• geringer Ressourcenverbrauch• umfangreiche Features 26.03.2013 1
  2. 2. nginx: soft-facts• ausgesprochen „engine x“ [ˈ ɛnʤɪn ˈɛks]• BSD-Lizenz• 11,53 % aller erfassten Webserver mit nginx betrieben Netcraft-Statistik 08.2012• wikipedia, Domainfactory, 1und1,, GitHub, SourceForge, ComputerBase, nutzen nginx• Parallels Plesk Panels ab Version 11 bietet Unterstützung für nginx als Reverse Proxy 26.03.2013 2
  3. 3. nginx: modular• Static file serving• Compression• Access controls• URL rewriting• Custom logging• Server-side includes• Limited WebDAV• fehlertolerantes Load Balancing• Virtual Hosts (name, ip)• SSL/TLS Server Name Indication (SNI)• Flash-Video-Streaming• und vieles mehr. 26.03.2013 3
  4. 4. nginx: gute Leistung geringer Aufwand• Eventorientiert Only software we tested which could handle 8000 (live traffic, not benchmark) requests/second on a single server• Cachebare FastCGI Requests• Direkter Zugriff auf memcached page-load-time-way-down• Konfiguration und Betrieb: einfach und flexibel• simplify the software stack: Server, Reverse Proxy und Load Balancing: ein System 26.03.2013 4
  5. 5. nginx vs. andere 14.02.2012 26.03.2013 5
  6. 6. nginx vs. Apache• "Apache is like Microsoft Word, it has a million options but you only need six. Nginx does those six things, and it does five of them 50 times faster than Apache." Chris Lea• eventbased (nginx ) vs. threadbased (Apache) nginx: 46,9 % schneller, 55 % des Hauptspeichers benötigt 10.000 gleichzeitige HTTP-Abfragen benötigen nur etwa 2,5 MByte RAM 14.02.2012• Nginx bei hoher Last schneller vor allem bei statischen Datieien als Apache und verbraucht deutlich weniger Speicher.• dateien-drupal-typo3 26.03.2013 6
  7. 7. nginx vs. 26.03.2013 7
  8. 8. nginx vs. Varnish (static)• Varnish – HTTP accelerator for dynamic websites• Nginx – excels at serving static assets. Varnish is capable of intelligently caching dynamic content. CGI Support and SSL• Apache+varnish a bit faster than nginx (alone)? – Ive found varnish ~5% faster for small static files than nginx -- varnish in front of apache, or varnish in front of a web app server would be big gains; but in front of nginx, the benefit is pretty negligible (especially with overheads and extra complexity taken into account) – Using Varnish + Nginx is not worth *my* effort! (for static files) – no advantage to put Varnish in front of nginx 26.03.2013 8
  9. 9. nginx vs. Varnish (dynamic)• Static files as fast as possible, place Nginx in front• Dynamic ESI-enabled content, place Varnish in front• The best ESI config : – dynamic content served by Varnish on one VPS node – static assets served via a subdomain ( by Nginx on another node• Any application that caches to static files is better off without 26.03.2013 9
  10. 10. nginx und TYPO3• mehr als 10.000 requests mit TYPO3• nginx• nginx 26.03.2013 10
  11. 11. nginx und TYPO3• 26.03.2013 11