Mercurial > hg > nginx-tests
comparison proxy.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 | 05175c8b88dc |
children | 726c3c2a8b8c |
comparison
equal
deleted
inserted
replaced
44:daa295331acd | 45:d68b85def521 |
---|---|
39 client_body_temp_path %%TESTDIR%%/client_body_temp; | 39 client_body_temp_path %%TESTDIR%%/client_body_temp; |
40 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; | 40 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; |
41 proxy_temp_path %%TESTDIR%%/proxy_temp; | 41 proxy_temp_path %%TESTDIR%%/proxy_temp; |
42 | 42 |
43 server { | 43 server { |
44 listen localhost:8080; | 44 listen 127.0.0.1:8080; |
45 server_name localhost; | 45 server_name localhost; |
46 | 46 |
47 location / { | 47 location / { |
48 proxy_pass http://localhost:8081; | 48 proxy_pass http://127.0.0.1:8081; |
49 proxy_read_timeout 1s; | 49 proxy_read_timeout 1s; |
50 } | 50 } |
51 } | 51 } |
52 } | 52 } |
53 | 53 |