File: nginx.conf

package info (click to toggle)
python-cyclone 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,388 kB
  • ctags: 1,372
  • sloc: python: 8,823; sh: 183; makefile: 13; sql: 12
file content (22 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
upstream backend {
  server localhost:9901;
  server localhost:9902;
  server localhost:9903;
  server localhost:9904;
  # server unix:/tmp/cyclone.1;
  # server unix:/tmp/cyclone.2;
}

server {
  listen   80;
  server_name localhost;
  #access_log /var/log/nginx/access.log;

  location / {
    proxy_pass        http://backend;
    proxy_redirect    off;
    proxy_set_header  Host             $host;
    proxy_set_header  X-Real-IP        $remote_addr;
    proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
  }
}