<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ann
    冰是沒有未來的,因為它的永恒
    posts - 107,comments - 34,trackbacks - 0

    1. 下載
        1). nginx0.8.2.26
            wget http://sysoev.ru/nginx/nginx-0.8.26.tar.gz
       
        2). nginx / cache_purge patch
            wget http://labs.frickle.com/files/nginx-0.8.26-cache_purge-1.0.patch

    2.解壓 nginx
           sudo tar -zxvf nginx-0.8.26.tar.gz

    3. patch
       cd nginx-0.8.26
       sudo patch -p1 < ../nginx-0.8.26-cache_purge-1.0.patch

    4. 編譯
       1). 添加configure.sh
       
    #! /bin/bash
    VERSION=0.8.26
    NAME
    =nginx
    ./configure --prefix=/usr/local/$NAME --sbin-path=/usr/local/sbin/$NAME.$VERSION --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.8.x.pid --http-log-path=/var/log/nginx/8.x.access.log --error-log-path=/var/log/nginx/8.x.error.log  --user=nginx --group=nginx --with-openssl=/usr/lib/ssl/  --with-http_stub_status_module --with-http_flv_module --with-http_sub_module
       2). 修改configure 權限
          sudo chmod 755 configure
       3)sudo ./configure.sh
       4)sudo make
       5)sudo make install

    5. nginx-test.conf
      
    user www-data;
    worker_processes  
    1;

    error_log  
    /data/nginx_log/8.26.error-test.log;
    #master_process  off;
    #daemon          off; 

    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;

    pid      /var/run/nginx-test.pid;


    events {
        worker_connections  
    1024;
    }


    http {
        include       mime
    .types;
        default_type  application
    /octet-stream;

        
    #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  
    /data/nginx_log/8.26.test-access.log;
        gzip  on;
        proxy_temp_path 
    /data/nginx-proxy-temp;
        proxy_cache_path 
    /data/nginx_cache/purge_test levels=1:2 keys_zone=purge_test:800m inactive=20d;    

        sendfile        on;
        
    #tcp_nopush     on;

        #keepalive_timeout  0;

        keepalive_timeout  65;

        
    #gzip  on;

        server {
            
    listen       83;
            server_name  etch2;
            location 
    /{
                  allow   
    192.168.1.0/16;
                  allow   
    127.0.0.1/32;
                  deny all;
                  charset utf
    -8;

                  proxy_redirect off;

                  proxy_set_header Host 
    $host:$server_port;
                  proxy_set_header X
    -Real-IP  $remote_addr;
                  proxy_set_header X
    -Forwarded-For $proxy_add_x_forwarded_for;
                  client_max_body_size 50m;
                  client_body_buffer_size 256k;
                  proxy_connect_timeout 
    30;
                  proxy_send_timeout 
    30;
                  proxy_read_timeout 
    60;
                  proxy_buffer_size 16k;
                  proxy_buffers 
    4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;

                  proxy_cache purge_test;
                  proxy_cache_key test
    $request_uri;
                  proxy_cache_valid 
    200 302 30m;
                  proxy_cache_valid 
    301 1d;
                  proxy_cache_valid any 2m;
                  proxy_cache_min_uses  
    1;
                  proxy_cache_use_stale error timeout invalid_header http_500;
            
                  expires 12h;  
    # will this put a stamp on the stream from the upstream which does not (yet)

                  proxy_pass http
    ://localhost:8080;

            }
           location ~ /purge(/.*){
                  allow   192.168.0.0/16;
                  allow   127.0.0.1/32;
                  allow   222.66.142.229/32;
                  deny all;
    #              set $ppath test$1?$query_string;
    #              proxy_cache_purge  purge_test $ppath;
                   proxy_cache_purge purge_test test$1$is_args$args;

            }



        }



    }
    (
      
    posted on 2009-11-17 17:45 冰是沒有未來的,因為它的永恒 閱讀(512) 評論(0)  編輯  收藏 所屬分類: nginx

    當下,把心放下 放下如果是可能的,那一定是在當下,
    不在過去,也不在未來。
    當下放下。唯有活在當下,你的問題才能放下。

    主站蜘蛛池模板: 四虎国产精品免费久久影院| 18观看免费永久视频| 日本免费福利视频| 亚洲色大成WWW亚洲女子| 免费看污成人午夜网站| 亚洲国产电影在线观看| 久久笫一福利免费导航| 亚洲av成人一区二区三区| 国产成人无码免费看视频软件 | 亚洲性天天干天天摸| 国产午夜免费高清久久影院| 日本亚洲视频在线| 免费国产污网站在线观看15| 亚洲欧洲视频在线观看| 手机看黄av免费网址| 亚洲欧洲专线一区| 亚洲成人一区二区| 免费一级毛片无毒不卡| 亚洲免费一级视频| 四虎影视在线永久免费看黄| jizz中国免费| 久久精品国产亚洲AV无码娇色| 免费v片在线观看视频网站| 亚洲大码熟女在线观看| 亚洲欧洲精品成人久久奇米网| 久久国产乱子伦精品免费强| 亚洲国产韩国一区二区| 日韩免费高清视频| aa在线免费观看| 亚洲专区中文字幕| 亚洲第一成人影院| 67pao强力打造高清免费| 亚洲精品乱码久久久久蜜桃| 中文字幕亚洲无线码| 67194国产精品免费观看| 国产精品亚洲专区无码唯爱网| 国产亚洲精品福利在线无卡一| xxxx日本免费| 成人久久久观看免费毛片| 亚洲综合久久成人69| 亚洲国模精品一区|