标签:ons worker ret types 连接数 ip访问 oca nec include
基于域名##nginx并发连接数 processes 乘 connection
## worker_processes 服务进程数,一般和cpu 核心一致即可
worker_processes 1;
events {
##一个worker同时服务数量
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
### 加下面这个server 块 禁止 IP访问
server {
listen 80 default;
server_name _;
return 403;
}
server {
listen 80;
server_name www.etiantian.org;
location / {
root html/www;
index index.html index.htm;
}
}
server {
listen 80;
server_name bbs.etiantian.org;
location / {
root html/bbs;
index index.html index.htm;
}
}
server {
listen 80;
server_name blog.etiantian.org;
location / {
root html/blog;
index index.html index.htm;
}
}
}
标签:ons worker ret types 连接数 ip访问 oca nec include
原文地址:https://blog.51cto.com/14316149/2422513