Nginx Igor Sysoev

download Nginx   Igor Sysoev

If you can't read please download the document

Transcript of Nginx Igor Sysoev

  • 1. nginx - , http://sysoev.ru

2. nginx: engine x, ,

  • 2002
  • 4 2004
  • 2006 9.8% nginx'
  • 2007 22.7%
  • , Mamba, Peterhost

3. HTTP - 4. 5.

  • Apache (prefork):
    • 200-300K
    • mod_perl/php 1-100M
  • nginx:
    • keep-alive ~250
    • 32K-100K

6.

  • kqueue
    • FreeBSD, NetBSD, OpenBSD, MacOSX
  • epoll, rtsig
    • Linux
  • /dev/poll, eventport
    • Solaris
  • select, poll
  • sendfile
    • FreeBSD, Linux, Solaris

7.

8.

  • rewrite / if /
  • geo-targeting:
  • 404 ..

9.

  • SSL:
    • SSL-
    • : proxy_passhttps ://...
  • WebDAV:
    • PUT, DELETE, MKCOL, COPY, MOVE
  • perl

10. 11. Server Side Includes (SSI)

/one.html /two.php 12.

  • upstreambackend{
    • server backend1;
    • server backend2;
  • }
  • server {
    • location / {
      • proxy_passhttp://backend ;
    • }
  • }

13. X-Accel-Redirect

  • X-Accel-Redirect: /protected/file
  • server {
    • location / {
      • proxy_passhttp://backend;
    • }
    • location /protected/ {
      • internal ;
      • root/path/to/files;
    • }
  • }

XAR 14.

  • CGI
  • .htaccess
  • piped logs

15. - 16.

  • POP3
    • USER/PASS, APOP, AUTH LOGIN PLAIN
    • CRAM-MD5
  • IMAP
    • LOGIN
  • SMTP
    • AUTH LOGIN PLAIN CRAM-MD5
  • SSL, IMAP STARTTLS, POP3 STLS

17.

  • ,
  • perl'
  • MySQL
  • rewrite- script-