Mercurial > hg > nginx-tests
comparison fastcgi_unix.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | aa74b2903227 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
42 | 42 |
43 http { | 43 http { |
44 %%TEST_GLOBALS_HTTP%% | 44 %%TEST_GLOBALS_HTTP%% |
45 | 45 |
46 upstream u { | 46 upstream u { |
47 server 127.0.0.1:8081; | 47 server 127.0.0.1:%%PORT_1%%; |
48 } | 48 } |
49 | 49 |
50 server { | 50 server { |
51 listen 127.0.0.1:8080; | 51 listen 127.0.0.1:%%PORT_0%%; |
52 server_name localhost; | 52 server_name localhost; |
53 | 53 |
54 location / { | 54 location / { |
55 fastcgi_pass unix:%%TESTDIR%%/unix.sock; | 55 fastcgi_pass unix:%%TESTDIR%%/unix.sock; |
56 fastcgi_param REQUEST_URI $request_uri; | 56 fastcgi_param REQUEST_URI $request_uri; |
103 if ($ENV{REQUEST_URI} eq '/stderr') { | 103 if ($ENV{REQUEST_URI} eq '/stderr') { |
104 warn "sample stderr text" x 512; | 104 warn "sample stderr text" x 512; |
105 } | 105 } |
106 | 106 |
107 print <<EOF; | 107 print <<EOF; |
108 Location: http://127.0.0.1:8080/redirect | 108 Location: http://localhost/redirect |
109 Content-Type: text/html | 109 Content-Type: text/html |
110 | 110 |
111 SEE-THIS | 111 SEE-THIS |
112 $count | 112 $count |
113 EOF | 113 EOF |