View Full Version : Mime Type for .tar.gz.sign
I am trying to get .tar.gz.sign files to be flagged by the webserver as type application/pgp-signature. No matter what I do they are sent as application/x-tar. I've put this line in .htaccess:
AddType application/pgp-signature .sign
No dice. It works for .tgz.sign files but not .tar.gz.sign. Any ideas, anyone?
Terra
10-31-2005, 11:06 AM
I just tried it on one of my test accounts and it worked properly...
GET http://xxxxxxxxxxxx.xxx/test.tar.gz.sign --> 200 OK
Connection: close
Date: Mon, 31 Oct 2005 15:45:04 GMT
Accept-Ranges: bytes
ETag: "5f08f2-0-43663b73"
Server: Apache
Content-Encoding: x-gzip
Content-Length: 0
Content-Type: application/pgp-signature
Last-Modified: Mon, 31 Oct 2005 15:42:43 GMT
Client-Date: Mon, 31 Oct 2005 15:45:04 GMT
Client-Response-Num: 1
Double check what you have typed into your .htaccess file, and make sure there is a trailing new line, if that directive was added to the bottom of the file...
If it still doesn't work, please provide a URL where we can test it ourselves...
--
Terra
sysAdmin
FutureQuest
Honest to god, it changed in the last twelve hours. It is now sending me the correct mime-type as well. Maybe some oddity of wget which I was using to test.
The other adjustment I had to make to allow .sign files to be downloaded was this:
<Files *.gz.sign>
RemoveEncoding .gz
</Files>
I got this tip from the Apache docs at http://httpd.apache.org/docs/1.3/mod/mod_mime.html#removeencoding . It prevents Mozilla from trying to automatically decompress the .gz.sign file for me and failing miserably.
Honest to god, it changed in the last twelve hours. It is now sending me the correct mime-type as well. Maybe some oddity of wget which I was using to test.
Ah. I needed to tell wget to disallow server-side caching.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.