0

サーバー番号1はリクエストを受け取り、プロキシはサーバー番号2にhttp://server111.com/box_example/?boo=test&too=bestリクエストを書き換えますhttp://server222.com/u=box_example&?boo=test&too=best

私はここにオプションがあります:

location ~*/ {
   rewrite  ^/([a-z0-9])$   u=box_example&?boo=test&too=best break;
   rewrite  ^/(~*[a-z0-9])$ u=box_example&?boo=test&too=best break;
...
proxy_pass         http://192.168.200.9:3000;

方法を教えてください。

4

1 に答える 1