|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: areca-http
- To: nginx-ru@xxxxxxxxx
- Subject: Re: areca-http
- From: Alexander Petrovsky <askjuise@xxxxxxxxx>
- Date: Mon, 11 Apr 2011 12:09:01 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=UStRcOCqPkjNngjpY9OhoPpfT1/Vn6pWQ4XbfaE4mGo=; b=pULlhujBUYUARqvAEPHV0OxJ7Y3YECHzI75ijtJgMGWC+8/beo828NjT+peNowit3I Sfy54tE7WufS8C7rwhmykSQ71AOgv80U4QcN6aGdKPPNCEF2CpbB1iuBZ++Qp9/lz/B5 EnecaYRbOPdMTnbw/44IT/OsXP6YUaV7bs6dA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nWP1AMeHjYNfXXB0h0XQr1JgFcCaFvWHX84dXtIylezoytUb/oHs37GiBS7/MR9exz MXdShZKW3yTp9FTrBkCtc7I59N/X6D+ceGVO+uAkDygF+uqBBaY/wrX86qfBxaHacu9y MB1LYl+H/vWIXWDqzrX2OZ4IEO4D/9I29nJy4=
- In-reply-to: <4DA244E4.2050004@xxxxxxxxxxx>
- References: <4DA244E4.2050004@xxxxxxxxxxx>
11 апреля 2011 г. 9:01 пользователь Sergey Kobzar <sergey.kobzar@xxxxxxxxxxx> написал:
Есть веб сервис по управлению RAID контроллером areca-http:
# netstat -nlp | grep areca
tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN 12924/areca-http
tcp 0 0 127.0.0.1:1081 0.0.0.0:* LISTEN 12924/areca-http
tcp 0 0 127.0.0.1:1082 0.0.0.0:* LISTEN 12924/areca-http
udp 0 0 127.0.0.1:7890 0.0.0.0:* 12924/areca-http
udp 0 0 127.0.0.1:7891 0.0.0.0:* 12924/areca-http
Необходимо с помощью Nginx проксировать этот сервис.
Конфиг:
server {
listen 443 default ssl;
server_name localhost;
ssl on;
ssl_certificate /etc/ssl/private/cert.crt;
ssl_certificate_key /etc/ssl/private/cert.key;
access_log /var/log/nginx/default-ssl_access.log main;
error_log /var/log/nginx/default-ssl_error.log info;
root /home/www/default-ssl/htdocs;
location ^~ /areca_main {
proxy_pass http://localhost:1080/;
set $fixed_destination $http_destination;
if ( $http_destination ~* ^https(.*)$ ) {
set $fixed_destination http$1;
}
proxy_set_header Destination $fixed_destination;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
include /etc/nginx/fastcgi_main.conf;
}
Но на сервис попасть не могу. В логах:
2011/04/11 00:40:16 [error] 12713#0: *12 upstream timed out (110: Connection timed out) while reading upstream, client: 94.179.46.103, server: localhost, request: "GET /areca_main HTTP/1.1", upstream: "http://127.0.0.1:1080/", host: "64.205.149.45"
2011/04/11 00:40:47 [info] 12713#0: *12 client 94.179.46.103 closed keepalive connection
Что не так?
Кажется это означает, что nginx не дождался ответа от проксируемого сервера. Попробуйте поиграться с директивами:
proxy_read_timeout; proxy_send_timeout;
-- Петровский Александр / Alexander Petrovsky,
Jabber: juise@xxxxxxxxx Phone: +7 914 8 820 815
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|
|
|