<p>I deployed <strong>istio</strong> in my <strong>aks</strong> cluster using <a href="https://istio.io/latest/docs/setup/getting-started/" rel="nofollow noreferrer">enter link description here</a>, exposed istio sample applications(product_page,)through <strong>istio gatewayservice,</strong> it worked fine as expected, but when I exposed my service, showing <strong>404</strong> error.</p>
<p>Here is my gateway.yaml</p>
<p><a href="https://i.stack.imgur.com/kjdlq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kjdlq.png" alt="enter image description here" /></a></p>
<p>Here is my virtual-service.yaml</p>
<p><a href="https://i.stack.imgur.com/80I2o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/80I2o.png" alt="enter image description here" /></a></p>

harish hari
<p>As mentioned in the comments setting regex value to <code>regex: /*</code> solved the issue in this case.</p>
<p>It is possible to see and inspect what is exposed and what is accessible in the istio ingress by generating the mesh graph using kiali as mentioned on <a href="https://istio.io/latest/docs/tasks/observability/kiali/" rel="nofollow noreferrer">this documentation page</a>.</p>
<p>This is especially useful when working with regex uri match method as it is very easy to mess up the scope of a regex value.</p>
