Ticket #1229: config_nginx_OK_port_1514.txt

File config_nginx_OK_port_1514.txt, 1.7 KB (added by gilles-m@…, 9 years ago)
Line 
1user nginx;
2worker_processes auto;
3error_log /var/log/nginx/error.log;
4pid /run/nginx.pid;
5include /usr/share/nginx/modules/*.conf;
6events {
7 worker_connections 1024;
8}
9http {
10 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
11 '$status $body_bytes_sent "$http_referer" '
12 '"$http_user_agent" "$http_x_forwarded_for"';
13 access_log /var/log/nginx/access.log main;
14 server_tokens off;
15 sendfile on;
16 tcp_nopush on;
17 tcp_nodelay on;
18 keepalive_timeout 65;
19 types_hash_max_size 2048;
20 include /etc/nginx/mime.types;
21 default_type application/octet-stream;
22 include /etc/nginx/conf.d/*.conf;
23 server {
24 listen 80 default_server;
25 server_name _;
26 root /usr/share/nginx/html;
27 include /etc/nginx/default.d/*.conf;
28 location / {
29 access_log off;
30 allow 127.0.0.1;
31 deny all;
32 }
33 location /nginx_status {
34 stub_status on;
35 access_log off;
36 allow 127.0.0.1;
37 deny all;
38 }
39 error_page 404 /404.html;
40 location = /40x.html {
41 }
42 error_page 500 502 503 504 /50x.html;
43 location = /50x.html {
44 }
45 }
46}
47stream {
48 upstream COLINT1000P-514 {
49 server colint1001p.com:514;
50 server colint1002p.com:514;
51 }
52 server {
53 listen 1514 udp;
54 listen 1514; # tcp
55 proxy_pass COLINT1000P-514;
56 proxy_timeout 1s;
57 proxy_responses 1;
58 error_log /var/log/nginx/COLINT1000P-514.log;
59 }
60}