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


          user    syncher syncher;
          worker_processes  2;
          events {
              use epoll; # for linux
              worker_connections  1024;
          }


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


              #access_log  logs/access.log  main;

              sendfile        on;
              #tcp_nopush     on;

              #keepalive_timeout  0;
              keepalive_timeout  65;

              gzip  on;

              upstream tomcats {
                  server 127.0.0.1:18080 weight=1;
              }

              server {
                  listen       80;
                  server_name  _;

                  charset utf-8;

                  #access_log  logs/host.access.log  main;

                  location / {
                      root   html;
                      index  index.html index.htm;
                          #proxy_pass   http://tomcats;  
                  }

                  location ~ ^/NginxStatus/ { 
                      stub_status on; #Nginx 
                      access_log off; 
                  } 
                  #error_page  404              /404.html;

                  # redirect server error pages to the static page /50x.html
                  #
                  error_page   500 502 503 504  /50x.html;
                  location = /50x.html {
                      root   html;
                  }

                  # proxy the PHP scripts to Apache listening on 127.0.0.1:80
                  #
                  #location ~ \.php$ {
                  #    proxy_pass   http://127.0.0.1;
                  #}

                  # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
                  #
                  #location ~ \.php$ {
                  #    root           html;
                  #    fastcgi_pass   127.0.0.1:9000;
                  #    fastcgi_index  index.php;
                  #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
                  #    include        fastcgi_params;
                  #}

                  # deny access to .htaccess files, if Apache's document root
                  # concurs with nginx's one
                  #
                  #location ~ /\.ht {
                  #    deny  all;
                  #}

                  location ~ /jira {
                          proxy_pass      http://192.168.4.217;

                          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;
                          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;

                  }
              }


              
            

          }{ngiux_server}/conf/ngiux.conf
          posted on 2009-06-17 13:38 冰是沒有未來的,因為它的永恒 閱讀(643) 評論(0)  編輯  收藏 所屬分類: nginx

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

          主站蜘蛛池模板: 晋江市| 富裕县| 安塞县| 姚安县| 正蓝旗| 分宜县| 南部县| 福泉市| 赤水市| 中西区| 富民县| 廉江市| 灵武市| 祁阳县| 五大连池市| 舟山市| 梧州市| 建阳市| 绩溪县| 历史| 嘉峪关市| 永仁县| 包头市| 新余市| 八宿县| 彩票| 会同县| 吉木萨尔县| 鹰潭市| 金川县| 新闻| 苏尼特右旗| 青岛市| 湘阴县| 汨罗市| 潜江市| 电白县| 东平县| 盐城市| 依兰县| 睢宁县|