]> git.pld-linux.org Git - packages/nginx.git/blame - nginx-standard.conf
- up to 1.7.6
[packages/nginx.git] / nginx-standard.conf
CommitLineData
0ccf3faa 1user nginx nginx;
2worker_processes 5;
3error_log /var/log/nginx/nginx-standard_error.log;
4pid /var/run/nginx-standard.pid;
5
6events {
7 worker_connections 2048;
8 use epoll;
9}
10
11http {
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-standard_access.log main;
19 sendfile on;
20 tcp_nopush on;
21 tcp_nodelay on;
22 server_names_hash_bucket_size 128;
3db17524 23 types_hash_max_size 2048;
24 types_hash_bucket_size 64;
0ccf3faa 25 #keepalive_timeout 0;
26 keepalive_timeout 65;
27 limit_zone test-limit $binary_remote_addr 10m;
28 #gzip on;
ea30028e 29 #gzip_http_version 1.0;
30 #gzip_comp_level 2;
31 #gzip_proxied any;
32 #gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
0ccf3faa 33
34 server {
35 listen 80;
3874fa8c
JK
36
37 # listen 443 ssl;
38 # ssl_certificate /etc/nginx/server.crt;
39 # ssl_certificate_key /etc/nginx/server.key;
40
0ccf3faa 41 server_name localhost;
42 access_log /var/log/nginx/nginx-standard_access.log main;
43 client_max_body_size 10M;
44
45 location / {
46 autoindex on;
47 root /home/services/nginx/html;
48 index index.html index.htm index.php;
49 limit_conn test-limit 15;
50 }
51
36b3be34 52 include webapps.d/*.conf;
0ccf3faa 53
54# location /nginx_status {
55# stub_status on;
56# access_log off;
57# allow 127.0.0.1;
58# deny all;
59# }
60
61# error_page 404 /404.html;
62# error_page 500 502 503 504 /50x.html;
63# location = /50x.html {
64# root /home/services/http/error-pages;
65# }
66# location = /404.html {
67# root /home/services/http/error-pages;
68# }
69
70# location ~ \.php$ {
71# include /etc/nginx/fastcgi.params;
72# fastcgi_pass 127.0.0.1:1026;
73# fastcgi_index index.php;
74# fastcgi_param SCRIPT_FILENAME /home/services/nginx/html$fastcgi_script_name;
75# }
76
77 }
78
36b3be34 79 include vhosts.d/*.conf;
0ccf3faa 80}
This page took 0.0875 seconds and 4 git commands to generate.