proxy headers
Nickolay V. Krylov
nk at antenne.org.ru
Sat Dec 9 13:49:35 MSK 2006
Здравствуйте, nginx-ru.
заметил что nginx не шлет заголовки на бекэнд, если браузер передает
строку в виде GET http://... , даже если они указаны явно
запрос:
GET http://www.host.ru/1/spy/me.txt HTTP/1.0
Accept: */*
Accept-Language: ru
Pragma: no-cache
If-Modified-Since: Sat, 09 Dec 2006 10:30:01 GMT
If-None-Match: "c8ba-7-457a9029"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 4.6 (build 01425))
Host: www.host.ru
Proxy-Connection: Keep-Alive
конфа:
location / {
proxy_pass http://localhost:3129/;
proxy_set_header Host $http_host;
proxy_set_header User-Agent "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;)";
proxy_set_header Accept "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-icq, application/x-shockwave-flash, application/x-ssf, */*";
proxy_set_header Accept-Language ru;
proxy_set_header Accept-encoging: "gzip, deflate";
}
на бекэнд приходят только
GET /1/spy/me.txt HTTP/1.0
Host: www.host.ru
# ./nginx -v -t
nginx version: nginx/0.5.0
built by gcc 3.4.2 [FreeBSD] 20040728
2006/12/09 13:49:26 [info] 75479#0: the configuration file /usr/proxy/conf/nginx.conf syntax is ok
2006/12/09 13:49:26 [info] 75479#0: the configuration file /usr/proxy/conf/nginx.conf was tested successfully
--
С уважением,
Nickolay mailto:nk at antenne.org.ru
More information about the nginx-ru
mailing list