本人一般用來掛頁面通知,或暫停服務的通知,比較實用
配合iptables實用很爽很安逸
worker_processes 4;
worker_rlimit_nofile 51200;
error_log logs/nginx_error.log crit;
events {
use epoll;
worker_connections 51200;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 30;
tcp_nodelay on;
server {
listen 8040;
error_page 404 =200 /index.wml;
location / {
index index.wml;
root /home/ftp/info/;
}
location /ngxstatus {
stub_status on;
}
}
}
然後再/home/ftp/info/下搞個index.wml的通知頁面,很好很強大