更新 'linux基础/nginx/配置nginx转发.md'
This commit is contained in:
parent
1a34a45240
commit
b4cb2ef43b
1 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
||||||
修改/usr/local/nginx/conf/nginx.conf
|
修改/usr/local/nginx/conf/nginx.conf
|
||||||
(如果需要转发的网站较多,为方便查询,可以在目录中添加对应的配置文件(建议新建目录放配置文件)
|
(如果需要转发的网站较多,为方便查询,可以在目录中添加对应的配置文件(建议新建目录放配置文件)
|
||||||
如vhost_test.iboxpay.com.conf)
|
如vhost_test.iboxpay.com.conf)
|
||||||
添加如下内容
|
添加如下内容
|
||||||
|
```shell
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name test.iboxpay.com;
|
server_name test.iboxpay.com;
|
||||||
|
@ -17,4 +18,5 @@
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout 90;
|
||||||
client_max_body_size 10m;
|
client_max_body_size 10m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue