Re: Можно ли буферизацией разгрузить дисковую и процессор?
ProxyKZ
nginx-forum at nginx.us
Wed Oct 31 11:16:07 UTC 2012
В смысле не видно? Потому что вот этого не указал:
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
log_format isp '$bytes_sent $request_length';
server {
listen 10.10.10.10:80;
server_name smart.myserver.kz www.smart.myserver.kz;
rewrite ^(/manager/.*)$ https://$host$1 permanent;
error_page 404 = @fallback;
location = /nginx_status {
stub_status on;
access_log off;
}
location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/|pgadmin/) {
proxy_pass http://10.10.10.10:81;
proxy_redirect http://smart.myserver.kz:81/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
proxy_pass http://10.10.10.10:81;
proxy_redirect http://smart.myserver.kz:81/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
location ~*
^.+\.(jpg|jpeg|gif|png|svg|js|tiff|mp3|ogg|mpeg|mov|avi|swf|ico|css|tgz|gz|rar|zip|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf)$
{
root /home/bio/www/smart.myserver.kz;
access_log /home/httpd-logs/smart.myserver.kz.access.log ;
access_log /home/nginx-logs/bio isp;
}
location @fallback {
proxy_pass http://10.10.10.10:81;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,232383,232425#msg-232425
Подробная информация о списке рассылки nginx-ru