Re: php nginx.

Chubarov Andrey stitrace gmail.com
12 17:31:48 MSD 2011


proxy_cache_key "$request_method|$is_args|$host|$request_uri|$cookie_PHPSESSID";

PHPSESSID -      ?
   -  ģ?

12  2011. 16:20  taurrus <nginx-forum  nginx.us> :
> Nginx    
>   apache.  
>   
>   
> .    
>    
> .  
>  
>   
> ...
>  nginx 0.7.67.
>  :
>
>        proxy_cache name_cache;
>        proxy_cache_min_uses 1;
>        proxy_cache_valid 200 301 302 304 5m;
>        proxy_cache_use_stale http_503;
>        proxy_no_cache  $http_pragma   $http_authorization;
>        proxy_cache_key
> "$request_method|$is_args|$host|$request_uri|$cookie_PHPSESSID";
>        open_file_cache max=10000 inactive=24h;
>        open_file_cache_valid 5m;
>        open_file_cache_min_uses 5;
>        expires 24h;
>
>        location / {
>                proxy_pass http://apche/;
>                proxy_redirect off;
>                proxy_set_header Host $host;
>                proxy_set_header X-Real-IP
> $remote_addr;
>                proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
>                proxy_set_header Cookie $http_cookie;
>                proxy_set_header If-Modified-Since
> "";
>                proxy_set_header If-None-Match
> "";
>                proxy_pass_header Cookie;
>                proxy_pass_header Set-Cookie;
>                proxy_ignore_headers Cache-Control
> Expires;
>                client_max_body_size 100m;
>                client_body_buffer_size 128k;
>                proxy_connect_timeout 90;
>                proxy_send_timeout 90;
>                proxy_read_timeout 90;
>                proxy_buffer_size 8k;
>                proxy_buffers 8 64k;
>                proxy_busy_buffers_size 64k;
>                proxy_temp_file_write_size 10m;
>
>        error_page 400 402 403 404 405 /error/400/400.html;
>        error_page 500 501 502 503 504 /error/500/500.html;
>              }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,197583,197583#msg-197583
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru  nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>


nginx-ru