ПРОЕКТЫ 


  АРХИВ 


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]

proxy pass variable host


  • To: nginx-ru@xxxxxxxxx
  • Subject: proxy pass variable host
  • From: "Vladislav Vorobiev" <mymir.org@xxxxxxxxxxxxxx>
  • Date: Sun, 19 Oct 2008 14:48:54 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=cbR4sEaY8n1g6APneGtqQAP2n7AMlWB5iMFwn01wJN8=; b=lmzcESL6Oil0HUngPsVAeDMvzNdLUapn0M/YnjThSgcf2hgn6qrI5++cqY3iWk+aR+ bbRMy62aYguj3K6lcZC80N8PE8s72Nh7P9SyRAioLo0XH8QFbD78SbO5qIkBbX+jJ11X ezz+8EOvNMJZadbST9pPh2/hbqmIcYsk4lBwo=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=WfsUpryGvSPWIOuueeP5PN/aqO7IMKGkPk6p5PLH/e8y4F8yE0mgeGEk+WcHFo7k1q X+i1i+G7wjhDV23MXeoZsIclWT4m2hiOOCqeggyOKmYXV8myzJSlYYqERcsfFdAyEE4c Z8ZPwEMjrrM7p4EW/eQwXPQRKgHiqBYYpZRkA=

Добрый день,

кто подскажит почему не работает конструкция типа (nginx-0.7.19)

server {
        listen       80;
        server_name  lala.host *.lala.host;
        proxy_pass
        
http://localhost:8090/VirtualHostBase/http/$host:80/path/VirtualHostRoot/;
        }
}

без переменной host работает прекрасно!

в логах 502

87.234.147.2 - admin [19/Oct/2008:14:22:06 +0200] "GET / HTTP/1.1" 502
173 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1)
Gecko/2008071
87.234.147.2 - admin [19/Oct/2008:14:22:08 +0200] "GET /fsd HTTP/1.1"
502 173 "-"

и

2008/10/19 14:40:36 [error] 25858#0: *502 no resolver defined to
resolve localhost, client: XX.234.147.2, server:  lala.host, request:
"GET /fsd HTTP/1.1", host: " lala.host"

resolver это же для
proxy_pass  $request; ?

Мне нужно чтобы он на все  *.lala.host реагировал.



а apache было так

<VirtualHost *>
ServerName lala.host
ServerAlias *lala.host
RewriteEngine On
RewriteRule ^/(.*)
http://localhost:8090/VirtualHostBase/http/%{HTTP_HOST}:80/path/VirtualHostRoot/$1
[L,P]
</VirtualHost *>

Vlad


 




Copyright © Lexa Software, 1996-2009.