I had a call today about getting some google earth extension working correctly from MyWeb. Not a big deal. I gather there is some hot feelings about this, but I'm at at least two removes from where said feelings are. The long and short of it is that .KML files hosted on MyWeb were not rendering correctly because our web-server wasn't configured for that particular mime-type. The fix is as simple as the linked document says. Add those two lines to the MyWeb config file, and done. Or just add the lines to the "mime.types" file.
Point of fact, end-users can add non-supported mime-types to their own myweb directories by creating what Apache calls a ".htaccess file". Because Windows Explorer will not create a file that starts with a dot, I've set things up so the following three file-names can be used for the same thing. This is a file that goes into the directory being served:
.ht
ht.acl
.htaccess
Create an "ht.acl" file, and add the two suggested lines to it:
AddType application/vnd.google-earth.kml+xml .kml
AddType application/vnd.google-earth.kmz .kmz
And TADA! Your KML file works, and I didn't have to do anything. Clearly a system-wide approach is preferred, but this would get an obscure app to work.
I have a directory off of my own myweb directory that I use for "emailing" large attachments. I put the file into that directory, and mail a link to it. Useful for things like 50MB files. Or, on one occasion, a 724MB NetWare service-pack.This is the contents of that ht.acl file:
mime.types:Again, not a big thing.
application/vnd.google-earth.kmz+xml kml
application/vnd.google-earth.kmz kmz
Point of fact, end-users can add non-supported mime-types to their own myweb directories by creating what Apache calls a ".htaccess file". Because Windows Explorer will not create a file that starts with a dot, I've set things up so the following three file-names can be used for the same thing. This is a file that goes into the directory being served:
.ht
ht.acl
.htaccess
Create an "ht.acl" file, and add the two suggested lines to it:
AddType application/vnd.google-earth.kml+xml .kml
AddType application/vnd.google-earth.kmz .kmz
And TADA! Your KML file works, and I didn't have to do anything. Clearly a system-wide approach is preferred, but this would get an obscure app to work.
I have a directory off of my own myweb directory that I use for "emailing" large attachments. I put the file into that directory, and mail a link to it. Useful for things like 50MB files. Or, on one occasion, a 724MB NetWare service-pack.This is the contents of that ht.acl file:
deny from allWhich means, no off-campus access. Which is good, since I don't want that directory craweld by google and indexed ;). If I ever mail large files to any of the ResTek folk, I'll add their 'net into the list.
allow from 140.160.0.0/16