Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Абсолютный URI и proxy_pass
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Абсолютный URI и proxy_pass
- From: Roxis <roxis@xxxxxxx>
- Date: Tue, 27 May 2008 12:01:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:references:in-reply-to:x-face:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; bh=tfE9Nzrl6Y2+hTBlb6tcBxA3eQqo7aG7oWkfwF7d5hY=; b=bV+G1Q30O+fj4UOAn9yc/vMHxVthZFpHgZSFEMZPBvCQaQiN/fn6YnnVhFVCY3aWElbWA2HOn9sNh2gZPOrXR8HbvMEQyuUTijOcAjPFRrHXKKpKODQvxZDUUwhWFcwUG6fnvNza0WjtwANJZwEQtzfUN3qypOIw1TpTmrO65/k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:references:in-reply-to:x-face:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=E6D9a+RzWv0lhkiHZ6tG6cIAyAKfyAervsFJBrY3cbYjsGizasmFZU13x7AySUtQgxIH692inq1Tat6Y50WidQ7O6dxz1p/Ns91DySNlhhXJyjZo0KG0/3+xwI7/mUGEZNd4byZOoUb0hSgwPbOGGZQayPqwO383jJ6eNuhCHSg=
- In-reply-to: <20080527094647.GF45192@xxxxxxxxxxxxx>
- References: <200805271059.34929.nginx@xxxxxxxxxxxx> <20080527094647.GF45192@xxxxxxxxxxxxx>
On Tuesday 27 May 2008, Igor Sysoev wrote:
> On Tue, May 27, 2008 at 10:59:34AM +0200, Roxis wrote:
> > Как заставить nginx проксировать абсолютный URI (GET http://...)?
> >
> > до 0.7.0 работал workaround:
> >
> > location / {
> > set $http "http://";
> > rewrite / $http$host$uri;
> > }
> >
> > location http {
> > proxy_pass http://127.0.0.1:8080;
> > }
>
> location / {
> set $http "http://";
> rewrite / $http$host$uri break;
> proxy_pass http://127.0.0.1;
> }
Спасибо, работает.
|