Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Странности с rewrite
- To: nginx-ru@xxxxxxxxx
- Subject: Странности с rewrite
- From: greenh <greenh@xxxxxxxxx>
- Date: Thu, 9 Aug 2012 18:54:23 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=LyK+Xf8XWIx34YplPwcUhRWkUxeKsouonc7bMbvFHBc=; b=VeKg/wtbiOwJs2wxDwGCdPxKmplRFPVA//v+rz6U6G9K8EXdhZV7lsIm+peLSzYqTN +xVyMfIlTkbHJLxvocMkJj6HwEp0l53c0TAGUj8wkl1AgLD6Af/FN84zDXxmMMH2IfJJ 9kxBB7IetsH12iidHcQCVofLLwJ8oGtGLcBT8FyIeNbqggn4qwPwHOsWPHHZwI0Kjy6d /nkzIg3oInl6dxFNeQ/69auRkkEsQI5fm+Fr3KGstUHmatY4PAp5evxC174yLndIvL3Q 7uFyu+uAi6AG/FfBfDksOLUAxn/Gzy5aU+fNZm3A92loFfBd66MwAk/zJBKq4kbz7G/s q3qQ==
Добрый день
Господа, подскажите плз, с чем это может быть связанно?
если есть rewrite - то не проксирует
если убрать rewrite проксирует
location @fallback {
rewrite ^(.*)$ /tunefrisk/$1;
proxy_pass http://api.host.com;
proxy_set_header Host 'api.host.com';
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|