计算机网络/计算机科学与应用/系统/运维/开发

Nginx 最小配置文件解析

/usr/local/nginx/conf/nginx.conf
worker_processes  1;
events {
    worker_connections  1024;
}
http {
    server_tokens off;
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    include extra/*.conf;
  server {
        listen       5414;
        server_name   localhost;
        location / {
            root /www/www;
            index  index.html index.htm;
        }
    }
    server {
         listen  80;
         server_name c.cdzth.top;
         location / {
            root /www/www;
            #index index.html  index.htm;
            autoindex on;
            autoindex_exact_size off;
            autoindex_localtime on;
         }
    }
}


天天晨练不仅为了健身,也为了体现生命的倔强

评论

^