nginx組態檔中需要處理的段如下:
upstream cluster {
server 127.0.0.1:8080 down;
check interval=3000 rise=2 fall=3 timeout=5000 type=http;
check_http_send " HTTP/1.0\r\n\r\n";
check_http_expect_alive http_2xx http_3xx;
}
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://cluster;
}
=========================================
我需要在 upstream cluster 這個段的前后加##U,需要在location / 這個段的前后加##L,upstream 和location可能有多個,只是后面跟的欄位不同。求助有什么辦法可以現實?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/65303.html
上一篇:Python:串列與字串的使用
