> For the complete documentation index, see [llms.txt](https://maxwell.gitbook.io/way-to-architect/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maxwell.gitbook.io/way-to-architect/fu-wu-qi/nginx/ji-ben-pei-zhi.md).

# 基本配置

`nginx.conf`是`Nginx`的配置文件，其文件结构如下

```
### 全局模块                                      
...

### events模块
events {                                                 
    ...
}

### http模块
http {
    ...

    server {
        ...
        location /web1 {
          ...
        }
        location /web2 {
          ...
        }
    }
    server {
        ...
        ...
    }
}
```

<br>
