]> git.pld-linux.org Git - packages/nginx.git/blob - nginx-light.conf
- 0.6.33
[packages/nginx.git] / nginx-light.conf
1 user                    nginx nginx;
2 worker_processes        5;
3 error_log               /var/log/nginx/nginx-light_error.log;
4 pid                     /var/run/nginx-light.pid;
5
6 events {
7         worker_connections      2048;
8         use epoll;
9 }
10
11 http {
12         include         /etc/nginx/mime.types;
13         default_type    application/octet-stream;
14
15         log_format      main    '$remote_addr - $remote_user [$time_local] $request '
16                                 '"$status" $body_bytes_sent "$http_referer" '
17                                 '"$http_user_agent" "$http_x_forwarded_for"';
18         access_log      /var/log/nginx/nginx-light_access.log   main;
19         sendfile        on;
20         tcp_nopush      on;
21         tcp_nodelay     on;
22         server_names_hash_bucket_size   128;
23         types_hash_max_size     2048;
24         types_hash_bucket_size  64;
25         #keepalive_timeout      0;
26         keepalive_timeout       65;
27         limit_zone      test-limit      $binary_remote_addr     10m;
28         #gzip   on;
29
30         server {
31                 listen          80;
32                 server_name     localhost;
33                 access_log      /var/log/nginx/nginx-light_access.log  main;
34                 client_max_body_size    10M;
35
36                 location / {
37                         autoindex       on;
38                         root    /home/services/nginx/html;
39                         index   index.html index.htm index.php;
40                         limit_conn      test-limit      15;
41                 }
42
43
44 #               location /nginx_status {
45 #                       stub_status     on;
46 #                       access_log      off;
47 #                       allow   127.0.0.1;
48 #                       deny    all;
49 #               }
50                 
51 #               error_page      404     /404.html;
52 #               error_page      500 502 503 504 /50x.html;
53 #               location = /50x.html {
54 #                       root    /home/services/http/error-pages;
55 #               }
56 #               location = /404.html {
57 #                       root    /home/services/http/error-pages;
58 #               }
59
60 #               location ~ \.php$ {
61 #                       include         /etc/nginx/fastcgi.params;
62 #                       fastcgi_pass    127.0.0.1:1026;
63 #                       fastcgi_index   index.php;
64 #                       fastcgi_param   SCRIPT_FILENAME /home/services/nginx/html$fastcgi_script_name;
65 #               }
66
67         }
68
69 }
This page took 0.040322 seconds and 3 git commands to generate.