Kibana Behind Reverse Proxy

I’m running Kibana behind azure app gateway(reverse proxy) getting bad gateway error.
below changes done to kibana.yaml file.
I can access locally this url with basepath but fails behind gateway.

server.basePath: “/odistro/kibana”
server.rewriteBasePath: false

Thanks in advance.