fdsfdsfds

worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for" "$request_time';

        #access_log  logs/access.log  main;
    include conf.d/*.conf;


#server {
#       listen 8080;   #监听80端口
#       server_name 10.0.0.61; # 没有域名,可用ip
#
#       location / {   #如果用户直接输入IP,没有/,加了location,进入匹配规则,
#               root /code/server2; #站点目录
#               index index.html;  #定义默认返回页面
#       }
#}
}

猜你喜欢

转载自www.cnblogs.com/john5yang/p/10164328.html