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 2020/12/14 03:42:14 UTC

[GitHub] [apisix] gewei2000 opened a new issue #3034: request help: how to set cookie path in apisix

gewei2000 opened a new issue #3034:
URL: https://github.com/apache/apisix/issues/3034


   ### Issue description
   how to set cookie path in apisix, such as nginx `proxy_cookie_path /demo/ /`
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):2.1
   * OS:centos7.5
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] gewei2000 commented on issue #3034: request help: how to set cookie path in apisix

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


   @spacewander 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] gewei2000 closed issue #3034: request help: how to set cookie path in apisix

Posted by GitBox <gi...@apache.org>.
gewei2000 closed issue #3034:
URL: https://github.com/apache/apisix/issues/3034


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3034: request help: how to set cookie path in apisix

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


   Maybe you can write a plugin to rewrite Set-Cookie response header.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] gewei2000 commented on issue #3034: request help: how to set cookie path in apisix

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


   > Add this directive to
   > 
   > https://github.com/apache/apisix/blob/0222db7bf31e022bd69cc28cdac3b41be09b875f/conf/config-default.yaml#L141
   > 
   > ?
   
   I've added many routes to apisix. I want to change each route cookie path and how to set directive
   
   like this
   ```
   location /demo1/{
            proxy_pass  http://1.1.1.1:8080/demo1/;
            proxy_cookie_path /demo1/ /;
   }
   location /demo2/{
            proxy_pass  http://1.1.1.1:8080/demo2/;
            proxy_cookie_path /demo2/ /;
   }
   ```
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3034: request help: how to set cookie path in apisix

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


   Add this directive to https://github.com/apache/apisix/blob/0222db7bf31e022bd69cc28cdac3b41be09b875f/conf/config-default.yaml#L141?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] gewei2000 commented on issue #3034: request help: how to set cookie path in apisix

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


   > Maybe you can write a plugin to rewrite Set-Cookie response header.
   
   3Q


----------------------------------------------------------------
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:
users@infra.apache.org