Jump to content

Nginx Admin com Cache - 50% mais velocidade com 50% menos load


PedroFelipe

Recommended Posts

Divulgado há pouco mais de um dia no fórum do NginxCP.com:

We are pleased to announce the release of New Nginx Admin (Beta) with built-in Cache function specially designed for high-traffic sites and wordpress blogs.

You can get 50% more speed with 50% less load and obviously again with free of charge.

Para instalar:

cd /usr/local/src

wget http://nginxcp.com/nginxadmin0.3-cache.tar

tar xf nginxadmin0.3-cache.tar

cd publicnginx

./nginxinstaller install
Antes, é preciso remover a versão instalada no seu servidor:
cd /usr/local/src

wget http://nginxcp.com/nginxadmin0.3-cache.tar

tar xf nginxadmin0.3-cache.tar

cd publicnginx

./nginxinstaller uninstall

Fonte: http://nginxcp.com/forums/Thread-beta-release-nginx-admin-with-cache-50-more-speed-with-50-less-load

Edited by PedroFelipe
Link to comment
Share on other sites

Esse é apenas um plugin para administrar o nginx ou é ele completo? E como faz para configurar de forma que o apache responda pelo php (conteúdo dinâmico) e o nginx pela conteúdo estático?

Link to comment
Share on other sites

A instalação parece facil, mas exige conhecimentos profundos sobre o modulo.. Não basta apenas a instalação, é necessaria a configuração e manutenção posterior.

A configuração padrão não serve?

user nobody;

# no need for more workers in the proxy mode

worker_processes 4;

error_log /var/log/nginx/error.log info;

worker_rlimit_nofile 20480;

events {

worker_connections 5120; # increase for busier servers

use epoll; # you should use epoll here for Linux kernels 2.6.x

}

http {

server_name_in_redirect off;

server_names_hash_max_size 2048;

server_names_hash_bucket_size 256;

include mime.types;

default_type application/octet-stream;

server_tokens off;

sendfile on;

tcp_nopush on;

tcp_nodelay on;

keepalive_timeout 60;

gzip on;

gzip_vary on;

gzip_disable "MSIE [1-6]\.";

gzip_proxied any;

gzip_http_version 1.1;

gzip_min_length 0;

gzip_comp_level 6;

gzip_buffers 16 8k;

# gzip_types text/plain application/x-javascript text/xml text/css;

gzip_types text/plain text/xml text/css application/x-javascript application/xml application/xml+rss text/javascript application/atom+xml;

ignore_invalid_headers on;

client_header_timeout 3m;

client_body_timeout 3m;

send_timeout 3m;

reset_timedout_connection on;

connection_pool_size 256;

client_header_buffer_size 256k;

large_client_header_buffers 4 256k;

request_pool_size 32k;

output_buffers 4 32k;

postpone_output 1460;

proxy_cache_path /var/cache/nginx/cached levels=2:2 keys_zone=global:10m inactive=10m max_size=1000M;

proxy_temp_path /tmp/nginx_proxy/;

client_body_in_file_only on;

client_max_body_size 4M;

client_body_buffer_size 128k;

log_format bytes_log "$msec $bytes_sent .";

include "/etc/nginx/vhosts/*";

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?