Welcome! Log In Create A New Profile

Advanced

Re: Вернулась ошибка при ипользовании proxy temp path

Andrew Alexeev
October 26, 2011 03:40AM
On Oct 26, 2011, at 3:11 AM, Craken wrote:

> Приветствую Вас, товарищи!
>
> Периодически при запуске nginx возникает
> segmentation fault!

Что говорит
http://wiki.nginx.org/debugging (раздел "core dump")?

> Методом научного "тыка", было
> определенно, что если не использовать
> proxy_temp_path - то все отлично запускается!
> Проблема возникает периодически - один
> раз нормально, потом 1-2 раза со сбоем,
> потом опять нормально! Короче "как
> повезет"!
>
> В версии 0.9.6 глюк исчез, а в 1.1.5 опять
> появился!
>
> ОС: Linux vlan-6 2.6.18-238.5.1.el5 #1 SMP Fri Apr 1 18:42:32 EDT 2011
> i686 i686 i386 GNU/Linux
>
> nginx: nginx version: nginx/1.1.6
> nginx: TLS SNI support disabled
> nginx: configure arguments: --prefix=/usr/local/nginx
> --with-http_ssl_module --with-http_flv_module
> --with-http_stub_status_module --http-log-path=/usr/local/nginx/logs
> --http-client-body-temp-path=/usr/local/nginx/var/client_body_temp
> --http-proxy-temp-path=/usr/local/nginx/var/proxy_temp
> --http-fastcgi-temp-path=/usr/local/nginx/var/fastcgi_temp
> --with-zlib=/usr/local/src/zlib --pid-path=/usr/local/nginx/logs
> --lock-path=/usr/local/nginx/logs --with-pcre=/usr/local/src/pcre
> --with-http_addition_module --with-http_dav_module
> --with-http_gzip_static_module --with-http_image_filter_module
> --with-http_perl_module --with-http_realip_module
> --with-http_secure_link_module --with-http_ssl_module
> --with-http_sub_module --with-http_xslt_module
>
>
> Конфиг:
>
> http {
>
> include /usr/local/nginx/conf/mime.types;
> default_type application/octet-stream;
>
> log_format common '$remote_addr - - [$time_local] "$request"
> $status ' '$body_bytes_sent "$http_referer" "$http_user_agent"
> "$http_x_forwarded_for"';
>
> client_header_timeout 20;
> client_body_timeout 10;
> send_timeout 20;
>
> client_header_buffer_size 8k;
> large_client_header_buffers 4 8k;
>
> client_max_body_size 20m;
>
> reset_timedout_connection on;
>
> gzip on;
> gzip_min_length 1000;
> gzip_proxied expired no-cache no-store private auth;
> gzip_types text/plain application/xml text/css text/js;
>
> output_buffers 4 64k;
> postpone_output 1460;
>
> sendfile on;
>
> tcp_nopush on;
> tcp_nodelay on;
> keepalive_timeout 75 20;
>
> server_names_hash_bucket_size 512;
>
> open_file_cache max=100000 inactive=40s;
> open_file_cache_valid 60s;
> open_file_cache_min_uses 2;
> open_file_cache_errors on;
>
> proxy_cache_path var/proxy_temp levels=1:2
> keys_zone=proxy_one:1m;
> proxy_cache_valid 403 10m;
> proxy_cache_key "$remote_addr$host$request_uri";
> proxy_temp_path var/proxy_temp 1 2;
>
>
>
> server {
> listen *:80;
>
> access_log off;
>
> if ($http_user_agent !~*
> (mozilla|opera|msie|android|safari|amaya|avant|advanced|camino|elinks|epiphany|flock|chrome|cceweasel|icecat|k-meleon|konqueror|links|lynx|mimino|netscape|seamonkey))
> {
> return 403;
> }
>
> location ~* /announce.*
> {
> return 403;
> }
>
> location /
> {
>
> if ($host != my.site.com)
> {
> rewrite / http://my.site.com/ permanent;
> }
>
>
> proxy_cache proxy_one;
> proxy_pass http://my.site.com:80;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $remote_addr;
> }
>
>
> }
>
> }
>
> Сервер является просто прокси-сервером
> на другой!
> Все папки на которые ссылается конфиг
> существуют, и с правами 0777!
>
> Проблема такая на 2-х серверах, на еще 3-х
> пока замечено не было! Все серваки
> идентичны и ОС ставилась с одного
> диска!
>
> Как только выходит новая версия nginx -
> сразу ставлю на все сервера!
> Конечно мне сама директива не критична
> - могу убрать! Но ставлю в известность
> что такая "мини" проблема вроде есть!
>
> P.S. После "неудачного" запуска лог
> ошибок пуст!
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,217339,217339#msg-217339
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: Вернулась ошибка при ипользовании proxy temp path

Andrew Alexeev October 26, 2011 03:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 324
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