]> git.pld-linux.org Git - packages/nginx.git/blob - nginx-perl.conf
- re-add commitlog 1.62
[packages/nginx.git] / nginx-perl.conf
1 user                    nginx nginx;
2 worker_processes        5;
3 error_log               /var/log/nginx/nginx-perl_error.log;
4 pid                     /var/run/nginx-perl.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-perl_access.log    main;
19         sendfile        on;
20         tcp_nopush      on;
21         tcp_nodelay     on;
22         server_names_hash_bucket_size   128;
23         #keepalive_timeout      0;
24         keepalive_timeout       65;
25         limit_zone      test-limit      $binary_remote_addr     10m;
26         #gzip   on;
27
28         server {
29                 listen          80;
30                 server_name     localhost;
31                 access_log      /var/log/nginx/nginx-perl_access.log  main;
32                 client_max_body_size    10M;
33
34                 location / {
35                         autoindex       on;
36                         root    /home/services/nginx/html;
37                         index   index.html index.htm index.php;
38                         limit_conn      test-limit      15;
39                 }
40
41
42 #               location /nginx_status {
43 #                       stub_status     on;
44 #                       access_log      off;
45 #                       allow   127.0.0.1;
46 #                       deny    all;
47 #               }
48                 
49 #               error_page      404     /404.html;
50 #               error_page      500 502 503 504 /50x.html;
51 #               location = /50x.html {
52 #                       root    /home/services/http/error-pages;
53 #               }
54 #               location = /404.html {
55 #                       root    /home/services/http/error-pages;
56 #               }
57
58 #               location ~ \.php$ {
59 #                       include         /etc/nginx/fastcgi.params;
60 #                       fastcgi_pass    127.0.0.1:1026;
61 #                       fastcgi_index   index.php;
62 #                       fastcgi_param   SCRIPT_FILENAME /home/services/nginx/html$fastcgi_script_name;
63 #               }
64
65         }
66
67 }
This page took 0.033476 seconds and 3 git commands to generate.