Ticket #254: nginx configuration

File nginx configuration, 3.6 KB (added by Roberto Hidalgo, 13 years ago)

working nginx configuration

Line 
10000000: 6461 656d 6f6e 206f 6666 3b0a 7573 6572 daemon off;.user
20000010: 2020 7777 773b 0a77 6f72 6b65 725f 7072 www;.worker_pr
30000020: 6f63 6573 7365 7320 2031 3b0a 7069 6420 ocesses 1;.pid
40000030: 2f76 6172 2f72 756e 2f6e 6769 6e78 2e70 /var/run/nginx.p
50000040: 6964 3b0a 0a23 6572 726f 725f 6c6f 6720 id;..#error_log
60000050: 206c 6f67 732f 6572 726f 722e 6c6f 673b logs/error.log;
70000060: 0a23 6572 726f 725f 6c6f 6720 206c 6f67 .#error_log log
80000070: 732f 6572 726f 722e 6c6f 6720 206e 6f74 s/error.log not
90000080: 6963 653b 0a23 6572 726f 725f 6c6f 6720 ice;.#error_log
100000090: 206c 6f67 732f 6572 726f 722e 6c6f 6720 logs/error.log
1100000a0: 2069 6e66 6f3b 0a0a 2370 6964 2020 2020 info;..#pid
1200000b0: 2020 2020 6c6f 6773 2f6e 6769 6e78 2e70 logs/nginx.p
1300000c0: 6964 3b0a 0a0a 6576 656e 7473 207b 0a20 id;...events {.
1400000d0: 2020 2077 6f72 6b65 725f 636f 6e6e 6563 worker_connec
1500000e0: 7469 6f6e 7320 2031 3032 343b 0a7d 0a0a tions 1024;.}..
1600000f0: 0a68 7474 7020 7b0a 2020 2020 696e 636c .http {. incl
170000100: 7564 6520 2020 2020 2020 2020 2020 206d ude m
180000110: 696d 652e 7479 7065 733b 0a20 2020 2064 ime.types;. d
190000120: 6566 6175 6c74 5f74 7970 6520 2020 2020 efault_type
200000130: 2020 6170 706c 6963 6174 696f 6e2f 6f63 application/oc
210000140: 7465 742d 7374 7265 616d 3b0a 2020 2020 tet-stream;.
220000150: 6368 6172 7365 7420 2020 2020 2020 2020 charset
230000160: 2020 2075 7466 2d38 3b0a 2020 2020 0a20 utf-8;. .
240000170: 2020 2023 6c6f 675f 666f 726d 6174 2020 #log_format
250000180: 6d61 696e 2020 2724 7265 6d6f 7465 5f61 main '$remote_a
260000190: 6464 7220 2d20 2472 656d 6f74 655f 7573 ddr - $remote_us
2700001a0: 6572 205b 2474 696d 655f 6c6f 6361 6c5d er [$time_local]
2800001b0: 2022 2472 6571 7565 7374 2220 270a 2020 "$request" '.
2900001c0: 2020 2320 2020 2020 2020 2020 2020 2020 #
3000001d0: 2020 2020 2027 2473 7461 7475 7320 2462 '$status $b
3100001e0: 6f64 795f 6279 7465 735f 7365 6e74 2022 ody_bytes_sent "
3200001f0: 2468 7474 705f 7265 6665 7265 7222 2027 $http_referer" '
330000200: 0a20 2020 2023 2020 2020 2020 2020 2020 . #
340000210: 2020 2020 2020 2020 2722 2468 7474 705f '"$http_
350000220: 7573 6572 5f61 6765 6e74 2220 2224 6874 user_agent" "$ht
360000230: 7470 5f78 5f66 6f72 7761 7264 6564 5f66 tp_x_forwarded_f
370000240: 6f72 2227 3b0a 0a20 2020 2023 6163 6365 or"';.. #acce
380000250: 7373 5f6c 6f67 2020 6c6f 6773 2f61 6363 ss_log logs/acc
390000260: 6573 732e 6c6f 6720 206d 6169 6e3b 0a20 ess.log main;.
400000270: 2020 200a 2020 2020 7365 6e64 6669 6c65 . sendfile
410000280: 2020 2020 2020 2020 6f6e 3b0a 2020 2020 on;.
420000290: 2374 6370 5f6e 6f70 7573 6820 2020 2020 #tcp_nopush
4300002a0: 6f6e 3b0a 0a20 2020 2023 6b65 6570 616c on;.. #keepal
4400002b0: 6976 655f 7469 6d65 6f75 7420 2030 3b0a ive_timeout 0;.
4500002c0: 2020 2020 6b65 6570 616c 6976 655f 7469 keepalive_ti
4600002d0: 6d65 6f75 7420 2036 353b 0a0a 2020 2020 meout 65;..
4700002e0: 677a 6970 2020 6f6e 3b0a 0a20 2020 2061 gzip on;.. a
4800002f0: 6363 6573 735f 6c6f 6720 2020 202f 7661 ccess_log /va
490000300: 722f 6c6f 672f 6e67 696e 782f 6163 6365 r/log/nginx/acce
500000310: 7373 2e6c 6f67 3b0a 2020 2020 6572 726f ss.log;. erro
510000320: 725f 6c6f 6720 2020 2020 2f76 6172 2f6c r_log /var/l
520000330: 6f67 2f6e 6769 6e78 2f65 7272 6f72 2e6c og/nginx/error.l
530000340: 6f67 3b0a 0a20 2020 2069 6e63 6c75 6465 og;.. include
540000350: 202f 6574 632f 6e67 696e 782f 7369 7465 /etc/nginx/site
550000360: 732d 656e 6162 6c65 642f 2a3b 0a0a 7d0a s-enabled/*;..}.