Это старая версия документа!


  • server_name_in_redirect off;

Отладка location

Оптимизация

ALL

Документация

  • apt-get install libpcre3-dev libpcre3 zlib1g-dev
# nginx
deb http://nginx.org/packages/debian squeeze nginx
deb-src http://nginx.org/packages/debian squeeze nginx

./configure

Без прокси

./configure --prefix=/usr --sbin-path=/usr/sbin/nginx  --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --without-http_proxy_module --with-http_gunzip_module --with-aio_module --lock-path=/var/run/nginx.lock --with-http_gzip_static_module
./configure --prefix=/usr --sbin-path=/usr/sbin/nginx  --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --with-http_gunzip_module --with-aio_module --lock-path=/var/run/nginx.lock --with-http_gzip_static_module
  distr=squeeze
  nginx=stable # use nginx=development for latest development version
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu $distr main" > /etc/apt/sources.list.d/nginx-$nginx-$distr.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update 
apt-get install nginx

Видеоруки / Статьи