DISQUS

Homo-Adminus Blog: Nginx - Маленький, Но Очень Мощный И Эффективный Web-Сервер

  • morbo · 3 years ago
    Consider trying lighttpd then. Very similar capabilities - more features - better documentation.
  • Scoundrel · 3 years ago
    I've tried to use it and have compared it with nginx. Its performance is very poor comparing to nginx. Nginx uses very efficient connection handling algorithms and that is why it is more preferable for high loads.
  • morbo · 3 years ago
    That would be rather weird, since if your web page is correct they use exactly the same system: epoll on Linux 2.6, kqueue on FreeBSD, etc...

    Is there some English documentation on how to set up nginx to serve PHP+FastCGI? I'm interested in some benchmarking.
  • Scoundrel · 3 years ago
    I will post sample configuration for nginx+php+fcgi there tomorrow.
  • Joseph McDonald · 3 years ago
    Thanks for the great write up!

    I would be really interested to see your configuration. Can it compress dynamic content? Do you use it as a front end to apache or as a standalone web server?

    How did it compare to lighttpd number wise?
  • Cliff Wells · 3 years ago
    Alexey,

    As I'm sure you know already, some of us have set up a wiki for Nginx and are working on getting English, and German translations completed and the Russian documention ported:

    http://wiki.codemongers.com/Nginx

    Hope this helps others give Nginx a try.
  • Terry Gillett · 3 years ago
    I am trying to install nginx to act as a reverse proxy on a Linksys NSLU2 with Unslung 5.5 Linux operating system.

    I have followed the tutorial here:
    http://www.nslu2-linux.org/wiki/HowTo/ReverseProxy
    and all is well until I get to the part where I modify the nginx.conf file to add the Cherokee server as per the tutorial extract below:

    >>

    At this point of the proceedings I should be able to see the Cherokee server at
    :7007/cherokee/
    but no luck.

    I am also trying to proxy the web interface of my router at 192.168.1.254
    Similarly for the router page at
    :7007/router/

    My nginx.conf file is as shown below.
    Have I added the proxy lines to the config file correctly?

    Thanks for your help.

    ************************
    My nginx.conf file.

    #user nobody;
    worker_processes 1;

    #error_log logs/error.log;
    #error_log logs/error.log notice;
    #error_log logs/error.log info;

    #pid logs/nginx.pid;


    events {
    worker_connections 1024;
    }


    http {
    include conf/mime.types;
    default_type application/octet-stream;

    sendfile on;
    #tcp_nopush on;

    #keepalive_timeout 0;
    keepalive_timeout 65;
    tcp_nodelay on;

    #gzip on;

    server {
    #listen 80;
    listen 7007;
    server_name localhost;

    #charset koi8-r;

    #access_log logs/host.access.log main;

    location / {
    root html;
    index index.html index.htm;
    }

    #error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root html;
    }

    #proxy Cherokee
    location /cherokee/ {
    proxy_pass http://127.0.0.1:8008;
    proxy_redirect default;
    }

    #proxy Router
    location /router/ {
    proxy_pass http://192.168.1.254:80;
    proxy_redirect default;
    }

    }

    }
  • Eugene · 2 years ago
    Hey, I am thinking about using nginx as a reverse proxy in front of Tomcat. Have anyone done it before ?
  • Sergey · 2 years ago
    Алексей, добрый день.
    Возникла проблема и решения пока не нашёл.
    Загружаю файл *.asf который после аплоада обрабатывается mencoder'ом, но после того как файл закинут на сервер и начата обработка менкодером, сервер выдаёт 504ю ошибку.
    как с этим можно бороться?
  • Stepan Klimov · 2 years ago
    Скажите, какой максимальный размер отдаваемого статического файла?
  • Denis · 1 year ago
    Так все-таки - как эффективнее использовать Nginx - в связке с апачем как фронтэнд или как замена апача?

    Если можно - опишите какую версию nginx Вы используете на том сервере который показал способность держать 150-200Mbit/s и какая у Вас конфигурация nginx, и, если можно, желаза.

    С уважением,
    Денис