lizeming commented on issue #2468:
URL: https://github.com/apache/apisix/issues/2468#issuecomment-718328570


   This is one of the business request chains. 
   
   This business has been around for a long time. 
   
   Request chain: client -> internet address(2xx.xxx.xxx.xx9:8096) -> 
pre-agent(172.xx.xxx.135:9080) -> business-agent(10.xx.xx.31:8096) -> business 
service(10.xx.xx.45)
   
   The following is a summary of the main configuration of the business chain:
   
   pre-agent(172.xx.xxx.135):
   ```
   http {
       server_tokens  off;
       include        mime.types;
       default_type   application/octet-stream;
       proxy_redirect off;
       server {
           listen 9080;
           location / {
               proxy_set_header Host $http_host;
               proxy_pass http://10.xx.xx.31:8096;
           }
       }
   }
   ```
   
   business-agent(10.xx.xx.31):
   ```
   http {
       server_tokens  off;
       include        mime.types;
       default_type   application/octet-stream;
       proxy_redirect off;
   
       server {
           listen 8096;
           location / {
               proxy_set_header Host $http_host;
               proxy_pass http://10.xx.xx.45:8080;
           }
       }
   }
   ```
   
   Request example:
   ```
   $ curl -v http://2xx.xxx.xxx.xx9:8096/crxxxxxxor/
   *   Trying 2xx.xxx.xxx.xx9:8096...
   * TCP_NODELAY set
   * Connected to 2xx.xxx.xxx.xx9 (2xx.xxx.xxx.xx9) port 8096 (#0)
   > GET /crxxxxxxor/ HTTP/1.1
   > Host: 2xx.xxx.xxx.xx9:8096
   > User-Agent: curl/7.68.0
   > Accept: */*
   >
   * Mark bundle as not supporting multiuse
   < HTTP/1.1 302 Found
   < connection: close
   < Content-Type: text/html;charset=utf-8
   < Content-Length: 0
   < Server: Openresty
   < Date: Thu, 29 Oct 2020 02:45:41 GMT
   < Set-Cookie: JSESSIONID=4664rfv5A55tgb11B6yhn67uj3; Path=/crxxxxxxor; 
HttpOnly
   < Location: http://2xx.xxx.xxx.xx9:8096/crxxxxxxor//login/loginManage/toLogin
   <
   * Closing connection 0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to