title: "host not allowed" error when deploying a play framework application to Amazon AWS with Boxfuse
body: <p>I am trying to deploy a simple web application written using Play Framework in Scala to Amazon web service. </p>
  
  <p>The web application is running OK in development mode and production mode in my local machine, and I've changed its default port to 80.</p>
  
  <p>I used Boxfuse to deploy to AWS as suggested. </p>
  
  <p>I first run "<strong>sbt dist</strong>"
  then "<strong>boxfuse run -env=prod</strong>"</p>
  
  <p>Things went well as desired. The image is fused and pushed to AWS. AMI is created. Instance was started and my application was running.</p>
  
  <blockquote>
    <p><strong>i-0f696ff22df4a2b71 => 2017-07-13 01:28:23.940 [info] play.api.Play - Application started (Prod)</strong></p>
  </blockquote>
  
  <p>Then came the error message:</p>
  
  <blockquote>
    <p><strong>WARNING: Healthcheck (<a href="http://35.156.38.90/" rel="noreferrer">http://35.156.38.90/</a>) returned 400 instead of 200. Retrying for the next 300 seconds ...</strong></p>
    
    <p><strong>i-0f696ff22df4a2b71 => 2017-07-13 01:28:24.977 [info] p.c.s.AkkaHttpServer - Listening for HTTP on /0.0.0.0:80</strong></p>
    
    <p><strong>i-0f696ff22df4a2b71 => 2017-07-13 01:28:25.512 [warn] p.f.h.AllowedHostsFilter - Host not allowed: 35.156.38.90</strong></p>
  </blockquote>
  
  <p>The instance was terminated after repeated try after 3 minutes. It gave a warning like:</p>
  
  <blockquote>
    <p><strong>Ensure your application responds with an HTTP 200 at / on port 80</strong></p>
  </blockquote>
  
  <p>But I've made sure the application responds in local machine, and I tried both Windows and Ubuntu, all works well.</p>
  
  <p>Also, running "boxfuse run" on local machine, I can connect to it using "<a href="http://localhost" rel="noreferrer">http://localhost</a>", but still have the error.</p>
  
  <p>Hope someone with experience can give me some suggestions. Thanks in advance. </p>
  
  <p>ps: not sure if relevant, I added these settings to application.conf</p>
  
  <pre><code>http {
          address = 0.0.0.0
          port = 80
      }
  </code></pre>