Ticket #1684: nginx.conf
| File nginx.conf, 522 bytes (added by , 8 years ago) |
|---|
| Line | |
|---|---|
| 1 | error_log logs/error.log debug; |
| 2 | |
| 3 | events { |
| 4 | worker_connections 1024; |
| 5 | } |
| 6 | |
| 7 | http { |
| 8 | default_type text/plain; |
| 9 | |
| 10 | geo $foo { |
| 11 | 255.255.255.255 0; |
| 12 | default 1; |
| 13 | } |
| 14 | |
| 15 | geo $remote_addr $bar { |
| 16 | 255.255.255.255 0; |
| 17 | default 1; |
| 18 | } |
| 19 | |
| 20 | server { |
| 21 | listen unix:/tmp/ngx.sock; |
| 22 | server_name localhost; |
| 23 | |
| 24 | location = /foo { |
| 25 | return 200 "$foo"; |
| 26 | } |
| 27 | |
| 28 | location = /bar { |
| 29 | return 200 "$bar"; |
| 30 | } |
| 31 | } |
| 32 | } |
