title: kml not loading on ec2
body: <p>I am having similar problem like this post refers to: 
  <a href="https://stackoverflow.com/questions/24317090/kml-layer-problems-in-google-maps-javascript-api-v3">KML layer problems in Google Maps Javascript API v3</a></p>
  
  <p>My kml file is not loading when hosted on my ec2 instance.
  Its working when it is hosted for example on my google drive.
  My ec2 port 80 is open for all and I do not block anything with iptables.</p>
  
  <p>This is my html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;style&gt;
         #map {
          height: 600px;
          width: 100%;
         }
      &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h3&gt;My Google Maps Demo&lt;/h3&gt;
      &lt;div id="map"&gt;&lt;/div&gt;
      &lt;script&gt;
        var src = "http://{my host}/locations/test.kml";
         var map;
  
        function initMap() {
          var uluru = {lat: -25.363, lng: 131.044};
          map = new google.maps.Map(document.getElementById('map'), {
            zoom: 4,
            center: uluru
          });        
          loadKmlLayer(src, map);
        }
        function loadKmlLayer(src, map) {
          var kmlLayer = new google.maps.KmlLayer(src, {
            suppressInfoWindows: true,
            preserveViewport: false,
            map: map
          });
        }
      &lt;/script&gt;
      &lt;script async defer
      src="https://maps.googleapis.com/maps/api/js?key=MY-API-KEY&amp;callback=initMap"&gt;
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any solutions?</p>