nginx_輕量級http服務應用

本人一般用來掛頁面通知,或暫停服務的通知,比較實用

配合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的通知頁面,很好很強大

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章