-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
39 lines (35 loc) · 998 Bytes
/
nginx.conf
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
user nginx;
# auto detects a good number of processes to run
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
#Provides the configuration file context in which the directives that affect connection processing are specified.
events {
# Sets the maximum number of simultaneous connections that can be opened by a worker process.
worker_connections 1024;
# Tells the worker to accept multiple connections at a time
multi_accept on;
}
http
{
# what times to include
include /etc/nginx/mime.types;
# what is the default one
default_type application/octet-stream;
sendfile on;
keepalive_timeout 60;
server
{
listen 11001;
access_log /var/log/nginx/access.log combined;
charset utf-8;
root /var/www;
index index.html;
location /
{
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ /index.html;
}
}
}