-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
68 lines (53 loc) · 1.19 KB
/
Copy pathnginx.conf
File metadata and controls
68 lines (53 loc) · 1.19 KB
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
user nginx;
error_log /dev/stderr;
worker_processes 1;
worker_rlimit_nofile 16384;
events {
multi_accept on;
use epoll;
worker_connections 1024;
}
http {
# access_log /dev/stdout;
access_log off;
log_not_found off;
include mime.types;
default_type application/octet-stream;
gzip on;
gzip_vary on;
gzip_min_length 512;
gzip_types
application/javascript
application/json
application/xml
image/svg+xml
text/css
text/js
text/plain
text/xml
;
sendfile on;
tcp_nodelay on;
tcp_nopush on;
server {
charset utf-8;
listen 80;
server_name localhost;
keepalive_requests 32768;
keepalive_timeout 16;
reset_timedout_connection on;
send_timeout 16;
open_file_cache max=16384 inactive=16s;
open_file_cache_errors on;
open_file_cache_min_uses 1;
open_file_cache_valid 128s;
location / {
index index.html;
root /usr/local/nginx/html;
}
location = /50x.html {
root /usr/local/nginx/html;
}
error_page 500 502 503 504 /50x.html;
}
}