You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/11/02 07:40:46 UTC

[GitHub] [apisix] overstarry opened a new issue, #8230: help request: is apisix support nginx proxy_hide_header parameter?

overstarry opened a new issue, #8230:
URL: https://github.com/apache/apisix/issues/8230

   ### Description
   
    is apisix support nginx  proxy_hide_header parameter? 
   
   ### Environment
   
    is apisix support nginx  proxy_hide_header parameter? 
   I want to hide the Content-Disposition,
   nginx conf:
   ```
   proxy_hide_header Content-Disposition
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301908481

   @mscb402 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301907094

   ![image](https://user-images.githubusercontent.com/23260162/199699452-a8340d40-d465-435a-9ff9-7da2f0043d33.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] mscb402 commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301821453

   > @mscb402 Tried and failed
   
   Can you share more detail


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tokers commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301820086

   > @tokers
   
   Sorry, I just misunderstood your meaning, you can try the response rewrite plugin just like @mscb402 said.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302849376

   no


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301909899

   remove Tried and failed


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] mscb402 commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301713104

   
   > ![image](https://user-images.githubusercontent.com/23260162/199513855-87c8914d-a9ef-49a1-83c5-1923ec360ff4.png) of no avail
   
   Is Content-Disposition header exist in response? If so, please use response-rewrite plugin.
   
   ```
   "response-rewrite": {
               "headers": {
                   "set": {
                       "Content-Disposition": inline,
                   }
               }
   }
   ```
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tokers commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1300015148

   Try the proxy-rewrite plugin.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] mscb402 commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302856654

   Please share the router config and more log detail


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] mscb402 commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302922679

   Look like you are using version 2.13. This version does not support Remove/Add/Set Header. https://apisix.apache.org/docs/apisix/2.13/plugins/response-rewrite/
   Please use this config:
   
   ```
   "response-rewrite": {
               "headers": {
                       "Content-Disposition": "inline"
               }
   }
   ```
   
   or
   ```
   "response-rewrite": {
               "headers": {
                       "Content-Disposition": ""
               }
   }
   ```
   
   Please try again


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] mscb402 commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302858977

   And apisix version


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1303016106

   {
     "uri": "/*",
     "name": "xx",
     "host": "xixi.xx",
     "plugins": {
       "proxy-rewrite": {
         "host": "xx.com",
         "regex_uri": [
           "/(.*)$",
           "/xx/${1}"
         ]
       },
       "response-rewrite": {
         "disable": false,
         "headers": {
           "Content-Disposition": "inline"
         },
         "vars": [
           [
             "status",
             "==",
             200
           ]
         ]
       }
     },
     "upstream": {
       "nodes": [
         {
           "host": "xx",
           "port": 80,
           "weight": 1
         }
       ],
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "pass_host": "pass",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "status": 1
   }


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry closed issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry closed issue #8230: help request:  is apisix support nginx  proxy_hide_header parameter? 
URL: https://github.com/apache/apisix/issues/8230


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1300513054

   @tokers 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tokers commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302839595

   @overstarry Did you some error log entries in APISIX `error.log`?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1300512639

   ![image](https://user-images.githubusercontent.com/23260162/199513855-87c8914d-a9ef-49a1-83c5-1923ec360ff4.png)
   of no avail


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302876966

   `{
     "uri": "/*",
     "name": "xx",
     "host": "xxx",
     "plugins": {
       "proxy-rewrite": {
         "host": "xxx",
         "regex_uri": [
           "/(.*)$",
           "/xx/${1}"
         ]
       },
       "response-rewrite": {
         "disable": false,
         "headers": {
           "remove": [
             "Content-Disposition"
           ]
         },
         "vars": [
           [
             "status",
             "==",
             200
           ]
         ]
       }
     },
     "upstream": {
       "nodes": [
         {
           "host": "xxx",
           "port": 80,
           "weight": 1
         }
       ],
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "pass_host": "pass",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "status": 1
   }`


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302878096

   ![image](https://user-images.githubusercontent.com/23260162/199871974-75ce216e-2a01-4338-b75e-9d07ba720dad.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301884473

   ![image](https://user-images.githubusercontent.com/23260162/199695348-e406dd76-7e32-475f-9176-2b3dac772af6.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1303021360

   ok,thanks


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301799954

   @mscb402 Tried and failed
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1301908197

   ![image](https://user-images.githubusercontent.com/23260162/199699644-01dd9e35-41e1-4c5b-94d2-73c0ca4ea13b.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] overstarry commented on issue #8230: help request: is apisix support nginx proxy_hide_header parameter?

Posted by GitBox <gi...@apache.org>.
overstarry commented on issue #8230:
URL: https://github.com/apache/apisix/issues/8230#issuecomment-1302881149

   1xxx - - [03/Nov/2022:10:34:36 +0000] xxx "GET /index.html HTTP/1.1" 200 5556 0.003 "-" "curl/7.75.0" 47.253.30.231:80 200 0.003 "xxx"
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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