ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Абсолютный URI и proxy_pass


  • To: nginx-ru@xxxxxxxxx
  • Subject: Абсолютный URI и proxy_pass
  • From: Roxis <roxis@xxxxxxx>
  • Date: Tue, 27 May 2008 10:59:34 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:date:x-face:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from:sender; bh=hAMdXg/2CKa/OuQsafLABEsO1hvkngJAL9QdsHjmdFs=; b=o0U/GxejLBXs3cHr0pXpuzNflblgj4NezZJb/nn1vpdxc5mecLCnz3iRHj1Ns3plQjgNK3JuWrAw+cF+M/7f0FbHa1iImTXw+nO9Wc3O5v81njWGNj78vSr5IweM9Fr3MHpH747JrRACD6wuKebuRLY1fwI/84fKH5Mg0txAYDg=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:date:x-face:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from:sender; b=t74hl1mw20m/xk5PVdLQUSB5UndqYxjUfrkbhYGBxJL3zDSSk/Ehm6IyxaaEYR+n9IeaPGjUJIi8vX4gPZxADM/CQ9uqfwTMUusH+EcEVQEM+4LFnnNDeONallKao4oHHLEGzMZpg7ChDxsUWS/OQUi65tAatQlkOqAqxv/hOzA=

Как заставить 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;
}


 




Copyright © Lexa Software, 1996-2009.