ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proxy_cache_path



ïÞÅ×ÉÄÎÏ nginx ÓÏÂÒÁÎ ÂÅÚ proxy ÍÏÄÕÌÑ.

Denis Kot





21 ÆÅ×ÒÁÌÑ 2011šÇ. 17:42 ÐÏÌØÚÏ×ÁÔÅÌØ áÌÅËÓÁÎÄÒ òÏÞÅ× <foxr@xxxxxxx> ÎÁÐÉÓÁÌ:
> äÏÂÒÙÊ ÄÅÎØ.
> îÅ ÚÁ×ÏÄÉÔÓÑ nginx. òÕÇÁÅÔÓÑ ÎÁ proxy_cache_path - unknown directive ÐÉÛÅÔ.
>
> ëÏÎÆÉÇ:
> userš www www;
>
> worker_processesš 8;
>
> error_logš /pub/log/nginx/error_logš notice;
>
> pidššššššš /var/run/nginx.pid;
>
> events {
> ššš worker_connectionsš 1024;
> ššš use kqueue;
> ššššššš }
>
> http {
>
> ššš proxy_cache_path /pub/cache levels=1:2 keys_zone=one:50m inactive=30m
> max_size=1024m;
>
> ššš includešššššš mime.types;
> ššš default_typeš application/octet-stream;
> ššš server_names_hash_bucket_size 1024;
> ššš client_header_timeoutš 1m;
> ššš client_body_timeoutššš 1m;
> ššš send_timeoutšššššššššš 1m;
> ššš keepalive_timeoutššššš 1m;
> ššš sendfileššššššš on;
> ššš client_max_body_sizešš 20m;
> ššš proxy_connect_timeoutš 60;
> ššš proxy_send_timeoutšššš 60;
> ššš proxy_read_timeoutšššš 60;
> ššš proxy_buffer_sizeššššš 128k;
> ššš proxy_buffersššššššššš 64 128k;
> ššš proxy_busy_buffers_size 128k;
> ššš proxy_bufferingššššššš on;
> ššš large_client_header_buffers 16 32k;
> šš gzipšššššššššššššššššš on;
> šš gzip_staticšššššššššššš on;
> šš gzip_min_lengthššššššš 1000;
> šš gzip_proxiedšššššššššš any;
> šš gzip_typesšššššššššššš text/plain text/xml application/xml
> application/x-javascript text/javascript text/css text/json;
> šš gzip_disablešššššššššš "msie6";
> šš gzip_comp_levelššššššš 6;
>
>
> log_formatš mainš '$remote_addr - $remote_user [$time_local] "$request" '
> ššššššššššššššššššššš '$status $body_bytes_sent "$http_referer" '
> ššššššššššššššššššššš '"$http_user_agent" "$http_x_forwarded_for"';
> access_logš /pub/log/nginx/access_logš main;
>
> server {
> ššššš listen 80 default rcvbuf=8k sndbuf=16k;
> šššššššš }
>
> ššššššššššššššššššš includešššš /usr/local/etc/nginx/vhosts/local;
> š }
>
> þÁÓÔÁÑ ÏÛÉÂËÁ, ÞÔÏ ÏÐÉÓÙ×ÁÀÔ ÎÅ × http, ÎÏ ×ÓÅ ×ÒÏÄÅ ÏÐÉÓÁÎÏ ÐÒÁ×ÉÌØÎÏ. ëÔÏ
> ÐÏÍÏÖÅÔ, ÐÏÖÁÌÕÊÓÔÁ?
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>
>
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.