简单nginx(win)文件服务器搭建配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sxhexin/article/details/85243500
worker_processes auto;
master_process on;
pid logs/nginx.pid;

error_log logs/error.log warn;
error_log logs/info.log info;


events {
    worker_connections  4096;
}


http {
    server_tokens off;

    client_header_buffer_size 8k;
    client_max_body_size 130m;
    proxy_buffer_size   64k;
    proxy_buffers   8 64k;


    log_format access '$remote_addr $host $remote_user [$time_local] $status $request_length $body_bytes_sent $request_time 0 0 0 - "-" "$request" "$http_referer" "$http_user_agent" $http_cookie $bytes_sent';
    access_log logs/access.log access;

    keepalive_requests 16;
    keepalive_timeout  5;

    server {
        listen       9099;
        server_name  	192.168.22.148;
		charset utf-8;

        location / {
			alias   pacages/;
            allow all;
            autoindex on;
        }
		
        location = /50x.html {
            root   html;
        }

    }
}

猜你喜欢

转载自blog.csdn.net/sxhexin/article/details/85243500