comparison proxy-noclose.t @ 45:d68b85def521

Tests: use 127.0.0.1 instead of localhost. Name 'localhost' is ambiguous if ipv6 present on system.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 02 Nov 2008 15:01:41 +0300
parents daa295331acd
children 726c3c2a8b8c
comparison
equal deleted inserted replaced
44:daa295331acd 45:d68b85def521
50 client_body_temp_path %%TESTDIR%%/client_body_temp; 50 client_body_temp_path %%TESTDIR%%/client_body_temp;
51 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; 51 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp;
52 proxy_temp_path %%TESTDIR%%/proxy_temp; 52 proxy_temp_path %%TESTDIR%%/proxy_temp;
53 53
54 server { 54 server {
55 listen localhost:8080; 55 listen 127.0.0.1:8080;
56 server_name localhost; 56 server_name localhost;
57 57
58 location / { 58 location / {
59 proxy_pass http://localhost:8081; 59 proxy_pass http://127.0.0.1:8081;
60 proxy_read_timeout 1s; 60 proxy_read_timeout 1s;
61 } 61 }
62 62
63 location /uselen { 63 location /uselen {
64 proxy_pass http://localhost:8081; 64 proxy_pass http://127.0.0.1:8081;
65 65
66 # test will wait only 2s for reply, we it will fail if 66 # test will wait only 2s for reply, we it will fail if
67 # Content-Length not used as a hint 67 # Content-Length not used as a hint
68 68
69 proxy_read_timeout 10s; 69 proxy_read_timeout 10s;