Msiavashi commented on issue #8207:
URL: https://github.com/apache/apisix/issues/8207#issuecomment-1297061738

   > > @tokers Here is the config that raises the error.
   > > ```json
   > > {
   > >   "uri": "/*",
   > >   "name": "authnapi",
   > >   "methods": [
   > >     "GET",
   > >     "POST",
   > >     "PUT",
   > >     "DELETE",
   > >     "PATCH",
   > >     "HEAD",
   > >     "OPTIONS",
   > >     "CONNECT",
   > >     "TRACE"
   > >   ],
   > >   "upstream": {
   > >     "nodes": [
   > >       {
   > >         "host": "authnapi.idmelon.com",
   > >         "port": 443,
   > >         "weight": 1
   > >       }
   > >     ],
   > >     "timeout": {
   > >       "connect": 6,
   > >       "send": 6,
   > >       "read": 6
   > >     },
   > >     "type": "roundrobin",
   > >     "scheme": "https",
   > >     "pass_host": "pass",
   > >     "keepalive_pool": {
   > >       "idle_timeout": 60,
   > >       "requests": 1000,
   > >       "size": 320
   > >     }
   > >   },
   > >   "status": 1
   > > }
   > > ```
   > 
   > Hello. This look like an SNI error. Maybe it's because it passes the 
client's host to the Upstream, Please change ` "pass_host": "pass",` to ` 
"pass_host": "rewrite",`. And try again.
   
   Hello. This worked. Thanks for the solution.
   
   I see a custom hostname is gonna be deprecated soon. Do you think this is a 
good idea to stick with this solution?
   
![image](https://user-images.githubusercontent.com/13716075/199014801-c838d35b-b64d-48a1-979b-e89aaf5cb338.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to