nginx 在哪儿添加http配置项

发布网友 发布时间:2022-04-22 07:33

我来回答

1个回答

热心网友 时间:2023-12-06 02:36

在nginx.conf的例子

http {
mytest_num 1;
server {
server_name A;
listen 80;
mytest_num 2;
location /L1 {
mytest_num 3;
}
location /L2 {
mytest_num 4;
}
}
server {
server_name B;
listen 80;
location /R1 {
mytest_num 5;
}
location /R2 {
mytest_num 6;
}

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com