server_name 正则

node1:/etc/nginx#cat nginx_taohui.conf
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

events {
    worker_connections  1024;
}

# http conf
http {
    #include     http/common.conf;
    #include     http/cache.conf;
    #include     http/resty.conf;
    #include     http/mime.types;

    include     http/*.conf;

    include     http/servers/*.conf;
    log_format  main  '[$HOST] $remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" "$request_filename"';
     gzip on;
     gzip_min_length 1000;
     gzip_buffers 4 8k;
     gzip_types text/plain application/x-javascript text/css application/json application/xml text/javascript;
    access_log  logs/access.log  main;  

        #charset koi8-r;

        #access

你可能感兴趣的:(nginx)