myserver.domain/request/server/load.php?a=HELLO&b=...
myserver.domain/request/server/load.php?a=NO&b=BYE...
location /server/load.php {
rewrite (.*)HELLO(.*) $1NO$2 last;
proxy_pass localhost:88;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
}
map $args $replace {
volatile;
default $args;
~^(.*)HELLO(.*) "$1NO$2";
}
server {
location /server/load.php {
rewrite ^ $uri?$replace?;
rewrite ^ $uri?$replace? break;
proxy_pass localhost:88;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
}