Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MHT files and Apache?

Status
Not open for further replies.

jh0

Technical User
Jan 22, 2005
16
US
Hello,

I'm running an Apache webserver on Linux. I'm hosting a site that holds a large amount of MHT files.

My problem is that Apache doesn't seem to be sending the right content-type for MHT files. When I view them from the server in a browser, they show up in raw format. I can then go on to save the MHT file to my hard drive and view it locally, and it appears fine then, so the data is not being changed in any way.

Basically, I need to know how to tell Apache to send the MHT files with the right MIME type. I've tried adding entries to the mime.conf file (such as "multipart/related mht" and "message/rfc822 mht") with no effect. Any help would be greatly appreciated. Thank you!
 
Read the mod_mime section of the apache httpd manual looking for the "AddType" directive.
 
That's done it! Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top