31 lines
588 B
Nginx Configuration File
31 lines
588 B
Nginx Configuration File
# nginx.conf
|
|
user nginx;
|
|
worker_processes auto;
|
|
|
|
# 错误日志
|
|
error_log /var/log/nginx/error.log warn;
|
|
pid /var/run/nginx.pid;
|
|
|
|
# 工作模式
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
# HTTP 配置
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
# 包含 conf.d 目录下的所有配置文件
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
# 日志配置
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 2048;
|
|
}
|