hendriksaragih / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

get request from google maps does not provide host field #182

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
With an apache 2.x server using virtual hosting
 - a.com is the default http server has a.kml 
 - b.com is a vhost and has b.kml

In google maps search field:
1. enter http://a.com/a.kml --> works 
2. enter http://b.com/b.kml --> file not found
3. enter http://b.com/a.kml --> works (and should not)

It looks like the http get request does not carry the 'host: b.com' header
it should have in order for the request to succeed for a virtual host.

Workaround: only use a default server to host kml to be read by google maps.

Note: unsure this is the right place to report this issue...

Original issue reported on code.google.com by nbar...@gmail.com on 21 Aug 2008 at 3:22

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 20 Nov 2008 at 1:40