Mime type for exe files keeps changing
807567May 19 2006 — edited May 19 2006I have a small problem with having users download exe files from the 6.1 server:
I have changed the mime.types for the server to reflect the the following changes for the exe file extension:
type=application/octet-stream exts=bin,exe,mpq
type=magnus-internal/cgi exts=cgi,bat
Then I reload the configurations from the webadmin GUI. This works fine for a while, then something, and I am not sure what, suddenly triggers something in the server to return the following error:
HTTP2205: The request method is not applicable to the requested resource.
When I telnet to the webserver port 80 and make a HEAD request for the file I see the following:
HEAD /some/path/downloadable_file.exe HTTP/1.1
HOST: virtualhost.tld
HTTP/1.1 405 Method Not Allowed
Server: Sun-ONE-Web-Server/6.1
Date: Fri, 19 May 2006 13:04:07 GMT
Content-length: 124
Content-type: text/html
Allow: TRACE
Connection: close
If I reload the config files again I then see the correct result:
HEAD /some/path/downloadable_file.exe HTTP/1.1
HOST: virtualhost.tld
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Fri, 19 May 2006 13:20:22 GMT
Content-length: 957385
Content-type: application/octet-stream
Last-modified: Wed, 12 Apr 2006 20:13:37 GMT
Etag: "e9bc9-443d5f71"
Accept-ranges: bytes
This will work again for a while then revert back to the TRACE only allowed error.
Any ideas?