title: Using AWS API Gateway To Pass Requests Through An Application Load Balancer To A Web Application
body: <p>I want to use API Gateway for its mutual TLS capability and add it to an existing .net fx 4.8 web application hosted in IIS which is fronted by and AWS ALB:-</p>
  <p>client browser -&gt; apigw -&gt; alb -&gt; ec2</p>
  <p>I have configured the apigw method to return html and to use proxy integration, but I am having issues in a couple of places:-</p>
  <ul>
  <li>any request made to a subfolder of the mapped path returns {&quot;message&quot;:&quot;Missing Authentication Token&quot;}</li>
  <li>images are not being returned (tested by using the iis home page on the root</li>
  </ul>
  <p>In the absence of any api auth being configured, I understand that the missing token response could indicate a bad url. I am new to apigw so I may be missing something obvious, but I cannot believe I would have to map every single possible path available in our web app in the apigw config - there are simply too many!</p>
  <p>I have read a few articles/messages talking about handling images but these either refer to using s3 as the store or, in the case of the image being the only thing in the response, configuring the apigw to return an image content type. In this case of a .net web app which will return html and images, I have not found any advice.</p>
  <p>So my question is (before I spend way too long trying to make this work!), is it possible or even advisable to front a .net fx web app with an aws api gateway?</p>