yongboy opened a new issue #3117:
URL: https://github.com/apache/apisix/issues/3117


   ## Issue description
   
   I want to pass the nginx's [Embedded 
Variables](http://nginx.org/en/docs/http/ngx_http_core_module.html#variables) 
for upstream applications, below is my proxy-rewrite plugin's config:
   
   ```json
   {
       "headers": {
           "X-AUTH-UID": "$arg_uid"
       },
       "regex_uri": [
           "^/monitor/(.*)",
           "/$1"
       ]
   }
   ```
   
   The test url:
   
   ```
   curl http://gw.dev/monitor/hello?uid=10001
   ```
   
   The upstream application got the raw req info below: 
   
   ```
   GET /hello?uid=10001 HTTP/1.1
   Host: gw.dev
   X-Real-IP: 172.19.0.1
   X-Forwarded-For: 172.19.0.1
   X-Forwarded-Proto: http
   X-Forwarded-Host: gw.dev
   X-Forwarded-Port: 9080
   User-Agent: curl/7.64.1
   Accept: */*
   X-AUTH-UID: $arg_uid
   
   ......
   ```
   
   ## Environment
   
   * apisix version : 1.5
   * OS: MacOS
   * OpenRestyx / Nginx version: nginx/1.17.3
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to