-
Notifications
You must be signed in to change notification settings - Fork 1
/
04-separate-nginx-conf-file.patch
74 lines (62 loc) · 1.69 KB
/
04-separate-nginx-conf-file.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
diff --git a/conf/nginx.conf b/conf/nginx.conf
index 29bc085f..78c647f6 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -1,13 +1,16 @@
#user nobody;
-worker_processes 1;
+worker_processes auto;
#error_log logs/error.log;
-#error_log logs/error.log notice;
+error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
+# load dynamic modules
+include modules/*.conf;
+
events {
worker_connections 1024;
@@ -18,19 +21,21 @@ http {
include mime.types;
default_type application/octet-stream;
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
+ '$status $body_bytes_sent "$http_referer" '
+ '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
+ access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
+ #server_tokens off;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
+ gzip_vary on;
server {
listen 80;
@@ -77,8 +82,6 @@ http {
# deny all;
#}
}
-
-
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
@@ -91,8 +94,6 @@ http {
# index index.html index.htm;
# }
#}
-
-
# HTTPS server
#
#server {
@@ -114,4 +115,6 @@ http {
# }
#}
+ # virtual hosts configs
+ include http.d/*.conf;
}