Проблемма с настройкой

Valery Kholodkov valery at grid.net.ru
Thu Oct 18 22:27:46 MSD 2007


Яковлев Александр wrote:
> на 80 порту стоит nginx, который передает на 8080 (proxy_pass http://ip:8080;) запрос(test.ru).
> 
> Там апач отдает страницу(с мод перлом), кликаем на одну из ссылок на этой странице вида aaa.test.ru - в экссесс логе nginx referer test.ru
> 
> ip - - [18/Oct/2007:17:01:36 +0400] "GET /news/id/ HTTP/1.1" 404 215 "http://test.ru/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.7) Gecko/20070914 Firefox/2.
> 
> 
> 
> Как сделать, чтобы nginx получал aaa.test.ru 

Либо отдавать эту страницу исключительно под aaa.test.ru, либо сделать 
редирект с test.ru на aaa.test.ru:

14.36 Referer

    The Referer[sic] request-header field allows the client to specify,
    for the server's benefit, the _address (URI)_ of the resource from
    which the Request-URI _was obtained_ (the "referrer", although the
    header field is misspelled.)

-- 
Best regards,
Valery Kholodkov





More information about the nginx-ru mailing list