Mercurial > hg > nginx-tests
comparison fastcgi.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 |
---|---|
40 client_body_temp_path %%TESTDIR%%/client_body_temp; | 40 client_body_temp_path %%TESTDIR%%/client_body_temp; |
41 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; | 41 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; |
42 proxy_temp_path %%TESTDIR%%/proxy_temp; | 42 proxy_temp_path %%TESTDIR%%/proxy_temp; |
43 | 43 |
44 server { | 44 server { |
45 listen localhost:8080; | 45 listen 127.0.0.1:8080; |
46 server_name localhost; | 46 server_name localhost; |
47 | 47 |
48 location / { | 48 location / { |
49 fastcgi_pass 127.0.0.1:8081; | 49 fastcgi_pass 127.0.0.1:8081; |
50 } | 50 } |
73 | 73 |
74 my $count; | 74 my $count; |
75 while( $request->Accept() >= 0 ) { | 75 while( $request->Accept() >= 0 ) { |
76 $count++; | 76 $count++; |
77 print <<EOF; | 77 print <<EOF; |
78 Location: http://localhost:8080/redirect | 78 Location: http://127.0.0.1:8080/redirect |
79 Content-Type: text/html | 79 Content-Type: text/html |
80 | 80 |
81 SEE-THIS | 81 SEE-THIS |
82 $count | 82 $count |
83 EOF | 83 EOF |