1.5.3 配置文件结构

nginx.conf文件的组织方式采用树状结构。

... #main全局块  

events { #events块  
  ...  
}  

http{  #http块 

  ... #http全局块 

  upstream … #upstream负载均衡块    
  {  
    ...
  }  

  server {  #server块

    ... #server全局块  

    location [PATTERN] #location块  
    {  
      ...  
    }    
  }  

  server    
  {  
    ...    
  }  

  ... #http全局块  

}

mail{ #mail块
  ...
}

results matching ""

    No results matching ""