Re: Странности с rewrite

Craken nginx-forum at nginx.us
Fri Aug 10 09:42:33 UTC 2012


greenh, попробуйте так:

location @fallback {
rewrite ^(.*)$ /tunefrisk/$1 break;
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;

}

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,229522,229558#msg-229558



Подробная информация о списке рассылки nginx-ru