Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_path

Denis Kot
February 21, 2011 10:48AM
Очевидно nginx собран без proxy модуля.

Denis Kot





21 февраля 2011 г. 17:42 пользователь Александр Рочев <foxr@mail.ru> написал:
> Добрый день.
> Не заводится 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@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
>
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

proxy_cache_path

Александр Рочев February 21, 2011 10:44AM

Re: proxy_cache_path

Denis Kot February 21, 2011 10:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready