Ticket #964: nginx.conf

File nginx.conf, 828 bytes (added by cbranch@…, 10 years ago)
Line 
1error_log stderr info;
2pid nginx.pid;
3daemon off;
4events {
5 worker_connections 64;
6}
7http {
8 access_log off;
9 proxy_cache_path cache levels=2 keys_zone=cache_zone:1m inactive=24h max_size=10m;
10 proxy_temp_path temp;
11 server {
12 listen 127.0.0.2:8080;
13 location / {
14 proxy_pass http://127.0.0.3:8080;
15 proxy_cache cache_zone;
16 }
17 }
18 server {
19 listen 127.0.0.3:8080;
20 location /success {
21 add_header Cache-Control "max-age=3600";
22 add_header Expires "Tue, 15 Nov 1994 12:45:26 GMT";
23 return 200 "Hello world!";
24 }
25 location /fail {
26 add_header Expires "Tue, 15 Nov 1994 12:45:26 GMT";
27 add_header Cache-Control "max-age=3600";
28 return 200 "Hello world!";
29 }
30 }
31}