cszhzleo commited on
Commit
0fadc28
1 Parent(s): 5de9206

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +33 -0
nginx.conf ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ user nginx;
2
+ worker_processes auto;
3
+
4
+ #error_log /var/log/nginx/error.log notice;
5
+ #pid /var/run/nginx.pid;
6
+
7
+ error_log /tmp/error.log;
8
+ pid /tmp/nginx.pid;
9
+
10
+ events {
11
+ worker_connections 1024;
12
+ }
13
+
14
+
15
+ http {
16
+ include /etc/nginx/mime.types;
17
+ default_type application/octet-stream;
18
+
19
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
20
+ '$status $body_bytes_sent "$http_referer" '
21
+ '"$http_user_agent" "$http_x_forwarded_for"';
22
+
23
+ access_log /var/log/nginx/access.log main;
24
+
25
+ sendfile on;
26
+ #tcp_nopush on;
27
+
28
+ keepalive_timeout 65;
29
+
30
+ #gzip on;
31
+
32
+ include /etc/nginx/conf.d/*.conf;
33
+ }