location ~ /server/ {
    proxy_pass_header   Server;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header    X-Scheme $scheme;
    if ($request_method ~* GET) {
                proxy_pass http://127.0.0.1:8080;
            }
    if ($request_method ~* POST) {
                proxy_pass http://127.0.0.1:8081;
            }
}

相关文章:

  • 2021-12-31
  • 2021-08-26
  • 2022-01-14
  • 2021-11-28
  • 2021-06-01
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2022-01-25
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-12-19
相关资源
相似解决方案