You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/12/09 10:04:04 UTC

[GitHub] [incubator-brpc] jiangdongzi opened a new issue, #2046: grpc作为客户端发请求时是否可以带上域名呢

jiangdongzi opened a new issue, #2046:
URL: https://github.com/apache/incubator-brpc/issues/2046

   ![image](https://user-images.githubusercontent.com/17529657/206676462-2181c6eb-a263-4733-b62c-febb7f4281a9.png)
   我们使用nginx做grpc的网关, 没有域名的话, 会被直接驳回 返回404
   
   下面是使用grpc 客户端的网关日志, 访问是正常的
   ![image](https://user-images.githubusercontent.com/17529657/206676922-d8591876-40cc-45e3-a82f-3510a9ef1449.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: dev-unsubscribe@brpc.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] wwbmmm commented on issue #2046: 使用brpc作grpc客户端发请求时是否可以带上域名呢

Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #2046:
URL: https://github.com/apache/incubator-brpc/issues/2046#issuecomment-1345792310

   用controller.http_request().uri().set_host()可以吗?


-- 
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: dev-unsubscribe@brpc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] 使用brpc作grpc客户端发请求时是否可以带上域名呢 (brpc)

Posted by "jiangdongzi (via GitHub)" <gi...@apache.org>.
jiangdongzi closed issue #2046: 使用brpc作grpc客户端发请求时是否可以带上域名呢
URL: https://github.com/apache/brpc/issues/2046


-- 
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: dev-unsubscribe@brpc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jiangdongzi commented on issue #2046: 使用brpc作grpc客户端发请求时是否可以带上域名呢

Posted by GitBox <gi...@apache.org>.
jiangdongzi commented on issue #2046:
URL: https://github.com/apache/incubator-brpc/issues/2046#issuecomment-1346192593

   > 用controller.http_request().uri().set_host()可以吗?
   
   试了下, 没有加上,  也试了下 "cntl.http_request().SetHeader("Host, "xxxxxx") 也不行 


-- 
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: dev-unsubscribe@brpc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org