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]


  • To: nginx-ru@xxxxxxxxx
  • Subject:
  • From: Nikolay Grebnev <nikolaygrebnev@xxxxxxxxx>
  • Date: Mon, 27 May 2013 14:58:45 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9AYWtE/p719qd2DaJ+ThWt9t1Xwaf4Tsl1qMXzpW8PA=; b=kk4BsbuWPCvoJD5AybVEJ5cegKmv7SEdNKK05YUzzatTwM9Re24DfchM2xVLybDhiC Ef87bc7EaDabX1xG6LPSCJHlM/ywfTaAfnC7MZ3/05hv7r90UrDnX8SiEuwB6piNyYAW G3KiaC+8dfDIu6U4vjqXX1hClVOc3HCCjr2KDTg3WVL7XHHn/4b+2+12Ob4V/+cjKJob Y6zfqXXkMpl3si/GuEW6KAhuHIatrXERcrZb2z7n5hmyTZwxlo/HPCcc7BIIkTquGZew geyaEkK74XTY1hgl6a4X1QFodsrwJ//92TVlkNdNJBw/nkkyKKjTpKiRFsoRiKNXxVZv AIxQ==

.

( ). MISS. cache - . ( - , $request_uri ) .

http {
proxy_cache_path /usr/local/nginx/cache levels=1:2 keys_zone=default:30m max_size=1G;
proxy_temp_path /usr/local/nginx/proxy 1 2;
proxy_cache_use_stale error timeout invalid_header http_502;
proxy_cache_bypass $cookie_phpbb2mysql_sid;
proxy_no_cache $cookie_phpbb2mysql_sid;

# 3 ,
proxy_buffers 8 32k;
proxy_buffer_size 64k;
proxy_buffering On;


.....

location = / {
proxy_pass http://php;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header Via $http_via;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# index index.php; -
rewrite_log on;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_cache default;
proxy_cache_valid 200 300s;
proxy_cache_key "$request_method|$host|$request_uri";
# proxy_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
proxy_hide_header "Set-Cookie";
proxy_ignore_headers "Cache-Control" "Expires"; # php
limit_conn addr 4;
}


.
:)


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

  • Follow-Ups:
    • Re:
      • From: Maxim Dounin
    • Re:
      • From: Aleksandr Sytar

 




Copyright © Lexa Software, 1996-2009.