+++ /dev/null
-diff -ur nginx-1.0.5-orig/src/event/ngx_event_openssl.c nginx-1.0.5/src/event/ngx_event_openssl.c
---- nginx-1.0.5-orig/src/event/ngx_event_openssl.c 2011-01-20 13:33:17.000000000 +0100
-+++ nginx-1.0.5/src/event/ngx_event_openssl.c 2011-08-24 17:21:39.107319828 +0200
-@@ -1687,20 +1687,24 @@
- ngx_int_t rc;
- ngx_shm_zone_t *shm_zone;
- ngx_slab_pool_t *shpool;
-- ngx_connection_t *c;
-- ngx_rbtree_node_t *node, *sentinel;
-+#if (NGX_DEBUG)
-+ ngx_connection_t *c;
-+#endif
-+ ngx_rbtree_node_t *node, *sentinel;
- ngx_ssl_session_t *sess;
- ngx_ssl_sess_id_t *sess_id;
- ngx_ssl_session_cache_t *cache;
- u_char buf[NGX_SSL_MAX_SESSION_SIZE];
-
-- c = ngx_ssl_get_connection(ssl_conn);
--
- hash = ngx_crc32_short(id, (size_t) len);
- *copy = 0;
-
-+#if (NGX_DEBUG)
-+ c = ngx_ssl_get_connection(ssl_conn);
-+
- ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
- "ssl get session: %08XD:%d", hash, len);
-+#endif
-
- shm_zone = SSL_CTX_get_ex_data(SSL_get_SSL_CTX(ssl_conn),
- ngx_ssl_session_cache_index);
Summary: High perfomance HTTP and reverse proxy server
Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności
Name: nginx
-Version: 1.0.5
+Version: 1.0.6
Release: 1
License: BSD-like
Group: Networking/Daemons/HTTP
-Source0: http://sysoev.ru/nginx/%{name}-%{version}.tar.gz
-# Source0-md5: 373c7761a7c682b92b164c8ee3d6d243
-Source1: http://www.nginx.eu/favicon.ico
+Source0: http://nginx.org/download/%{name}-%{version}.tar.gz
+# Source0-md5: bc98bac3f0b85da1045bc02e6d8fc80d
+Source1: http://nginx.net/favicon.ico
# Source1-md5: 2aaf2115c752cbdbfb8a2f0b3c3189ab
-Source2: http://www.nginx.eu/download/proxy.conf
-# Source2-md5: f5263ae01c2edb18f46d5d1df2d3a5cd
+Source2: proxy.conf
Source3: %{name}.logrotate
Source4: %{name}.mime
Source5: %{name}-light.conf
Source15: %{name}-standard.monitrc
Source16: %{name}-standard.init
Source17: %{name}-mime.types.sh
-Patch0: %{name}-gcc46-build.patch
URL: http://nginx.net/
BuildRequires: mailcap
BuildRequires: openssl-devel
%prep
%setup -q
-%patch0 -p1
# build mime.types.conf
#sh %{SOURCE17} /etc/mime.types
--- /dev/null
+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 10m;
+client_body_buffer_size 128k;
+proxy_connect_timeout 90;
+proxy_send_timeout 90;
+proxy_read_timeout 90;
+proxy_buffer_size 4k;
+proxy_buffers 4 32k;
+proxy_busy_buffers_size 64k;
+proxy_temp_file_write_size 64k;
+
+