reeljustice
01-09-2007, 12:03 AM
I have recently been working with Google Earth.
I am creating a "Network Link" collection and tried using it from my coastaloutdoors site.
I'm not sure it is serving correctly in IE.
Below is some information I obtained from the Google Earth forums. Could you shed some light on what the problem may be? Is if possible to serve such a network link file from our FQ account? If so, please illuminate.
I believe I have uploaded such a file to http://www.coastaloutdoors.com/ge/Ga_WMAs.KMZ
Thanks in advance.
Joel
Set MIME type on server to properly serve KMZ files
Generally when this happens, it's because the MIME types are not correctly set on the server.
For an Apache server, you would include these two lines in httpd.conf:
AddType application/vnd.google-earth.kml+xml .kml
AddType application/vnd.google-earth.kmz .kmz
For Microsoft's Internet Information Server, you would follow these directions;
IIS Version 6.0:
http://www.microsoft.com/technet/prodtec...4.mspx?mfr=true
IIS 4.0 and 5.0:
http://www.microsoft.com/technet/prodtec...ty/mimeiis.mspx
If you manage your own web server, you must change your own configuration. If you do not, you must contact your web site hosting service and get them to make these changes.
My understanding is that Firefox checks with the OS to determine what it would do, if it couldn't open them itself. IE makes some guesses based on the file type. Since a KMZ file is inherently a zip file with a different extension, it tries to open it as a zip file.
Edited same day afternoon....
The solution above was for an own windows 2003 web server
For Webhosting I had to put the lines
AddType application/vnd.google-earth.kml+xml .kml
AddType application/vnd.google-earth.kmz .kmz
into a .htaccess file at the root of my webhosting package.
I am creating a "Network Link" collection and tried using it from my coastaloutdoors site.
I'm not sure it is serving correctly in IE.
Below is some information I obtained from the Google Earth forums. Could you shed some light on what the problem may be? Is if possible to serve such a network link file from our FQ account? If so, please illuminate.
I believe I have uploaded such a file to http://www.coastaloutdoors.com/ge/Ga_WMAs.KMZ
Thanks in advance.
Joel
Set MIME type on server to properly serve KMZ files
Generally when this happens, it's because the MIME types are not correctly set on the server.
For an Apache server, you would include these two lines in httpd.conf:
AddType application/vnd.google-earth.kml+xml .kml
AddType application/vnd.google-earth.kmz .kmz
For Microsoft's Internet Information Server, you would follow these directions;
IIS Version 6.0:
http://www.microsoft.com/technet/prodtec...4.mspx?mfr=true
IIS 4.0 and 5.0:
http://www.microsoft.com/technet/prodtec...ty/mimeiis.mspx
If you manage your own web server, you must change your own configuration. If you do not, you must contact your web site hosting service and get them to make these changes.
My understanding is that Firefox checks with the OS to determine what it would do, if it couldn't open them itself. IE makes some guesses based on the file type. Since a KMZ file is inherently a zip file with a different extension, it tries to open it as a zip file.
Edited same day afternoon....
The solution above was for an own windows 2003 web server
For Webhosting I had to put the lines
AddType application/vnd.google-earth.kml+xml .kml
AddType application/vnd.google-earth.kmz .kmz
into a .htaccess file at the root of my webhosting package.